Module: RandomRails
- Defined in:
- lib/random-rails.rb,
lib/random-rails/version.rb,
lib/random-rails/configuration.rb,
lib/random-rails/adapters/active_record/base.rb
Defined Under Namespace
Modules: Adapters
Classes: Configuration, Error
Constant Summary
collapse
- VERSION =
"1.0.3"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
18
19
20
|
# File 'lib/random-rails/configuration.rb', line 18
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
22
23
24
|
# File 'lib/random-rails/configuration.rb', line 22
def configure
yield(configuration)
end
|
.reset_configuration! ⇒ Object
26
27
28
|
# File 'lib/random-rails/configuration.rb', line 26
def reset_configuration!
@configuration = Configuration.new
end
|