app/helpers/pageflow/admin/entries_helper.rb in pageflow-15.6.1 vs app/helpers/pageflow/admin/entries_helper.rb in pageflow-15.7.0
- old
+ new
@@ -17,21 +17,11 @@
].index_by do |state|
I18n.t(state, scope: 'activerecord.values.pageflow/entry.publication_states')
end
end
- def entry_type_collection
- entry_type_collection_for_config(Pageflow.config)
- end
-
- def entry_type_collection_for_account(target)
- entry_type_collection_for_config(Pageflow.config_for(target))
- end
-
- private
-
- def entry_type_collection_for_config(config)
- config.entry_types.map(&:name).index_by do |type|
+ def entry_type_collection(entry_types = Pageflow.config.entry_types)
+ entry_types.map(&:name).index_by do |type|
I18n.t(type, scope: 'activerecord.values.pageflow/entry.type_names')
end
end
end
end