Class: AdminsController

Inherits:
ApplicationController show all
Defined in:
lib/generators/jinda/templates/app/controllers/jinda_org/admins_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#prepare_meta_tags

Instance Method Details

#update_roleObject



2
3
4
5
# File 'lib/generators/jinda/templates/app/controllers/jinda_org/admins_controller.rb', line 2

def update_role
  user = User.find_by :code=> $xvars["select_user"]["code"]
  user.update_attribute :role, $xvars["edit_role"]["role"]
end