app/models/loc_group.rb
# in case loc group name is changed, update permission names accordingly
# note update_attribute does the saving as well
in case loc group name is changed, update permission names accordingly
note update_attribute does the saving as well
in case loc group name is changed update permission names accordingly note update_attribute does the saving as well
def update_permissions
    self.view_permission.update_attribute(:name, name + " view")
    self.signup_permission.update_attribute(:name, name + " signup")
    self.admin_permission.update_attribute(:name, name + " admin")
  end
def update_permissions self . view_permission . update_attribute ( :name , name + " view" ) self . signup_permission . update_attribute ( :name , name + " signup" ) self . admin_permission . update_attribute ( :name , name + " admin" ) end
in case loc group name is changed, update permission names accordingly
note update_attribute does the saving as well
in case loc group name is changed update permission names accordingly note update_attribute does the saving as well