Class: MembershipsController

Inherits:
ArtfullyOseController show all
Defined in:
app/controllers/memberships_controller.rb

Instance Method Summary collapse

Instance Method Details

#bulk_updateObject



10
11
12
13
14
# File 'app/controllers/memberships_controller.rb', line 10

def bulk_update
  @person = current_organization.people.find(params[:person_id])
  extend_memberships(params)
  redirect_to person_memberships_path(@person)
end

#indexObject



4
5
6
7
8
# File 'app/controllers/memberships_controller.rb', line 4

def index
  @person = current_organization.people.find(params[:person_id])
  @expired_count = @person.memberships.lapsed.count
  @membership_types = current_organization.membership_types
end