Class: AdminsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AdminsController
- Defined in:
- lib/generators/jinda/templates/app/controllers/jinda_org/admins_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#update_role ⇒ Object
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 |