Method: ActiveDelegate::Attribute::Accessor#write
- Defined in:
- lib/active_delegate/attribute/accessor.rb
#write(value) ⇒ Object
72 73 74 75 |
# File 'lib/active_delegate/attribute/accessor.rb', line 72 def write(value) value = normalize_value(value) if type_cast? association_record.send(:"#{attribute_name}=", value) end |