Module: CanCanCanJs

Defined in:
lib/cancancan_js.rb,
lib/cancancan_js/engine.rb,
lib/cancancan_js/export.rb,
lib/cancancan_js/configuration.rb

Overview

Defined Under Namespace

Modules: Export Classes: Configuration, Engine

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



11
12
13
# File 'lib/cancancan_js.rb', line 11

def configuration
  @configuration
end

Class Method Details

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

Yields:



22
23
24
# File 'lib/cancancan_js.rb', line 22

def self.configure
  yield(configuration)
end

.resetObject



18
19
20
# File 'lib/cancancan_js.rb', line 18

def self.reset
  @configuration = Configuration.new
end