Module: WithRole

Defined in:
lib/with_role.rb,
lib/with_role/version.rb,
lib/with_role/active_record.rb

Defined Under Namespace

Modules: ActiveRecord Classes: Error

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configurationObject

Your code goes here…



8
9
10
# File 'lib/with_role.rb', line 8

def self.configuration
  @configuration ||= {}
end

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

Yields:



12
13
14
# File 'lib/with_role.rb', line 12

def self.configure
  yield(configuration)
end