fedibird-fe/app/helpers/lists_helper.rb
2021-08-12 07:08:36 +09:00

7 lines
192 B
Ruby

module ListsHelper
def home_list_new(lists)
items = { nil => t('column.home') }
items.merge!(lists&.pluck(:id, :title).to_h)
items.merge!({ -1 => t('lists.add_new') })
end
end