Class: MR::Factory::WithAssociationsConfig::ObjectBuilder
- Inherits:
-
Config::ObjectBuilder
- Object
- Config::ObjectBuilder
- MR::Factory::WithAssociationsConfig::ObjectBuilder
- Defined in:
- lib/mr/factory/config.rb
Instance Method Summary collapse
Methods inherited from Config::ObjectBuilder
apply_hash, apply_proc, #initialize
Constructor Details
This class inherits a constructor from MR::Factory::Config::ObjectBuilder
Instance Method Details
#set(name, value) ⇒ Object
202 203 204 205 206 207 208 209 210 211 |
# File 'lib/mr/factory/config.rb', line 202 def set(name, value) if value.kind_of?(Hash) && (association = __mr_ob_get_association(name)) __mr_ob_set_association_from_hash(association, name, value) else super(name, value) end rescue ArgumentError, NoRecordClassError => exception exception.set_backtrace(caller) raise exception end |