Module: AccessAllow

Defined in:
lib/access_allow.rb,
lib/access_allow/check.rb,
lib/access_allow/roles.rb,
lib/access_allow/railtie.rb,
lib/access_allow/version.rb,
lib/access_allow/abilities.rb,
lib/access_allow/access_manager.rb,
lib/access_allow/abilities_manager.rb,
lib/access_allow/controller_access_dsl.rb,
lib/generators/access_allow/install_generator.rb

Defined Under Namespace

Modules: ControllerAccessDsl, Generators Classes: Abilities, AbilitiesManager, AccessManager, Check, Configuration, Railtie, ResponseForbiddenError, Roles, ViolationError

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configurationObject



16
17
18
# File 'lib/access_allow.rb', line 16

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
23
# File 'lib/access_allow.rb', line 20

def configure
  yield(configuration) if block_given?
  configuration
end