Class: Infrastructure
- Inherits:
-
Object
- Object
- Infrastructure
- Includes:
- Configurable
- Defined in:
- lib/infrastructure.rb,
lib/infrastructure/path.rb,
lib/infrastructure/server.rb,
lib/infrastructure/railtie.rb,
lib/infrastructure/version.rb,
lib/infrastructure/constants.rb,
lib/infrastructure/databases.rb,
lib/infrastructure/environment.rb,
lib/infrastructure/configurable.rb,
lib/infrastructure/configuration.rb
Defined Under Namespace
Modules: Configurable Classes: Configuration, Databases, Environment, Path, Railtie, Server, Version
Constant Summary collapse
- VERSION =
'0.1.8'
Instance Method Summary collapse
Methods included from Configurable
#after_assignment, #after_configure, #before_assignment, #before_configure, #callback, #callbacks, #configuration, #configuration_accessor, included
Instance Method Details
#build(key, model, *params) ⇒ Object
20 21 22 23 |
# File 'lib/infrastructure.rb', line 20 def build(key, model, *params) model = model.constantize if model.is_a? String assign key, model.new(*params) end |