Module: Capable

Defined in:
lib/capable.rb,
lib/capable/base.rb,
lib/acts_as_ability.rb,
lib/acts_as_capable.rb,
lib/capable/version.rb,
lib/acts_as_capability.rb,
lib/capable/configuration.rb,
lib/acts_as_capability_renewer.rb

Defined Under Namespace

Modules: ActsAsAbility, ActsAsCapability, ActsAsCapabilityRenewer, ActsAsCapable, Base Classes: Configuration

Constant Summary collapse

VERSION =
"0.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

The configuration object.

See Also:



30
31
32
# File 'lib/capable.rb', line 30

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

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

Call this method to modify defaults in your initializers.

Examples:

Capable.configure do |config|
  config.<attr> = <value>
end

Yields:



24
25
26
# File 'lib/capable.rb', line 24

def configure
  yield(configuration)
end