Module: Pageflow::Admin::EntriesHelper

Defined in:
app/helpers/pageflow/admin/entries_helper.rb

Instance Method Summary collapse

Instance Method Details

#collection_for_entry_publication_statesObject



4
5
6
7
8
9
10
11
12
# File 'app/helpers/pageflow/admin/entries_helper.rb', line 4

def collection_for_entry_publication_states
  [
    'published_without_password_protection',
    'published_with_password_protection',
    'not_published'
  ].index_by do |state|
    I18n.t(state, scope: 'activerecord.values.pageflow/entry.publication_states')
  end
end