fedibird-fe/app/helpers/lists_helper.rb

8 lines
192 B
Ruby
Raw Normal View History

2019-08-30 08:02:41 +00:00
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