Class: MembershipsController
- Inherits:
-
ArtfullyOseController
- Object
- ActionController::Base
- ArtfullyOseController
- MembershipsController
- Defined in:
- app/controllers/memberships_controller.rb
Instance Method Summary collapse
Instance Method Details
#bulk_update ⇒ Object
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 |
#index ⇒ Object
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 |