Class: TroleGroups::Macros::Configuration::ConfigLoader
- Inherits:
-
BaseLoader
- Object
- BaseLoader
- TroleGroups::Macros::Configuration::ConfigLoader
- Defined in:
- lib/trole_groups/macros/configuration/config_loader.rb
Instance Attribute Summary
Attributes inherited from BaseLoader
Instance Method Summary collapse
- #config_class ⇒ Object
-
#initialize(strategy, orm) ⇒ ConfigLoader
constructor
A new instance of ConfigLoader.
Methods inherited from BaseLoader
#base_class, #namespace, #orm_namespace, #try_module
Constructor Details
#initialize(strategy, orm) ⇒ ConfigLoader
Returns a new instance of ConfigLoader.
5 6 7 |
# File 'lib/trole_groups/macros/configuration/config_loader.rb', line 5 def initialize strategy, orm super end |
Instance Method Details
#config_class ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/trole_groups/macros/configuration/config_loader.rb', line 9 def config_class begin "#{orm_namespace}::Config".constantize rescue # use generic if no ORM specific strategy found! "#{namespace}::Config".constantize end end |