Module: Rolypoly
- Defined in:
- lib/rolypoly.rb,
lib/rolypoly/version.rb,
lib/rolypoly/role_dsl.rb,
lib/rolypoly/role_gatekeeper.rb,
lib/rolypoly/role_gatekeepers.rb,
lib/rolypoly/controller_role_dsl.rb
Defined Under Namespace
Modules: ControllerRoleDSL, RoleDSL Classes: RoleGatekeeper, RoleGatekeepers
Constant Summary collapse
- VERSION =
"1.0.4"
- FailedRoleCheckError =
Class.new StandardError
Class Method Summary collapse
Class Method Details
.define_gatekeepers(&block) ⇒ Object
6 7 8 9 10 |
# File 'lib/rolypoly.rb', line 6 def self.define_gatekeepers(&block) role_gatekeepers = RoleGatekeepers.new role_gatekeepers.instance_eval(&block) role_gatekeepers end |