Module: Pageflow::Admin::MembershipsHelper

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

Defined Under Namespace

Classes: CollectionForParent

Instance Method Summary collapse

Instance Method Details

#membership_entries_collection_for_parent(parent) ⇒ Object


4
5
6
7
8
9
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 4

def membership_entries_collection_for_parent(parent)
  CollectionForParent.new(parent,
                          collection_method: :entries,
                          display_method: :title,
                          order: 'title ASC').pairs
end

#membership_users_collection_for_parent(parent) ⇒ Object


11
12
13
14
15
16
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 11

def membership_users_collection_for_parent(parent)
  CollectionForParent.new(parent,
                          collection_method: :users,
                          display_method: :formal_name,
                          order: 'last_name ASC, first_name ASC').pairs
end