Class: Para::Acl::Admin::AclRolesComponentController
- Inherits:
-
Para::Admin::ComponentController
- Object
- Para::Admin::ComponentController
- Para::Acl::Admin::AclRolesComponentController
- Defined in:
- app/controllers/para/acl/admin/acl_roles_component_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 |
# File 'app/controllers/para/acl/admin/acl_roles_component_controller.rb', line 5 def show @components_roles = ::Para::Acl::ComponentRolesCollection.new end |
#update ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/para/acl/admin/acl_roles_component_controller.rb', line 9 def update @components_roles = ::Para::Acl::ComponentRolesCollection.new if @components_roles.update(component_roles_params) (:success, @components_roles) redirect_to @component.path else (:error, @components_roles) render 'show' end end |