Class: StatusGroupMembershipsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/status_group_memberships_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_navable, #current_navable=, #current_user, #point_navigation_to, #redirect_www_subdomain, #set_locale

Instance Method Details

#destroyObject



18
19
20
# File 'app/controllers/status_group_memberships_controller.rb', line 18

def destroy
  @status_group_membership.destroy if @status_group_membership
end

#updateObject



9
10
11
12
13
14
15
16
# File 'app/controllers/status_group_memberships_controller.rb', line 9

def update
  attributes = params[ :status_group_membership ]
  if @status_group_membership.update_attributes( attributes )
    respond_with @status_group_membership
  else
    raise "updating attributes of user_group_membership has failed: " + @status_group_membership.errors.full_messages.first
  end
end