Module: Fabes
- Extended by:
- Fabes
- Included in:
- Fabes
- Defined in:
- lib/fabes.rb,
lib/fabes/admin.rb,
lib/fabes/helper.rb,
lib/fabes/railtie.rb,
lib/fabes/experiment.rb,
lib/fabes/alternative.rb,
lib/fabes/configuration.rb,
lib/fabes/connection_adapters/redis_adapter.rb,
lib/fabes/connection_adapters/abstract_adapter.rb
Defined Under Namespace
Modules: ConnectionAdapters, ConnectionHandling, Helper Classes: Admin, Alternative, Configuration, Experiment, FabesRailtie
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
11 12 13 |
# File 'lib/fabes.rb', line 11 def configuration @configuration end |
Instance Method Details
#configure {|configuration| ... } ⇒ Object
13 14 15 16 17 |
# File 'lib/fabes.rb', line 13 def configure self.configuration ||= Configuration.new yield(configuration) if block_given? configuration end |
#db ⇒ Object
19 20 21 |
# File 'lib/fabes.rb', line 19 def db @db ||= ConnectionHandling.establish_connection Fabes.configuration.database end |