Sha256: 2dcf74a02b159136631bc4a50b11dbccdc8389113bc816434968c33cc7c7093c

Contents?: true

Size: 839 Bytes

Versions: 14

Compression:

Stored size: 839 Bytes

Contents

Ecm::Rbac::Backend.configure do |config|
  # Set the resources, that will be shown in the backend menu.
  #
  # Default: config.registered_controllers = lambda {
  #            [
  #              Ecm::Rbac::Backend::RolesController
  #            ]
  #          }
  #
  config.registered_controllers = lambda {
    [
      Ecm::Rbac::Backend::UsersController,
      Ecm::Rbac::Backend::RolesController,
      Ecm::Rbac::Backend::PermissionsController
    ]
  }

  # Set the services, that will be shown in the backend menu.
  #
  # Default: config.registered_services = lambda {
  #            [
  #              Ecm::Rbac::Backend::ImportDefaultPermissionsServiceController
  #            ]
  #          }
  #
  config.registered_services = lambda {
    [
      Ecm::Rbac::Backend::ImportDefaultPermissionsServiceController
    ]
  }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ecm_rbac_backend-1.1.2 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-1.1.1 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-1.1.0 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-1.0.0 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.11 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.10 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.9 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.8 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.7 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.6 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.5 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.4 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.3 lib/generators/ecm/rbac/backend/install/templates/initializer.rb
ecm_rbac_backend-0.0.2 lib/generators/ecm/rbac/backend/install/templates/initializer.rb