Module: AdminTools

Defined in:
lib/admin_tools.rb,
lib/admin_tools/helper.rb,
lib/admin_tools/railtie.rb,
lib/admin_tools/version.rb,
lib/admin_tools/configuration.rb,
lib/generators/admin_tools/install/install_generator.rb

Defined Under Namespace

Modules: Generators, Helper Classes: Configuration, Railtie

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



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

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

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

Yields:



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

def configure
  yield(configuration)
end

.reset_configuration!Object



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

def reset_configuration!
  @configuration = Configuration.new
end