Class: Para::Acl::Admin::AclRolesComponentController

Inherits:
Para::Admin::ComponentController
  • Object
show all
Defined in:
app/controllers/para/acl/admin/acl_roles_component_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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

#updateObject



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)
    flash_message(:success, @components_roles)
    redirect_to @component.path
  else
    flash_message(:error, @components_roles)
    render 'show'
  end
end