Module: Enumerize::ActiveModelAttributesSupport::InstanceMethods
- Defined in:
- lib/enumerize/activemodel.rb
Instance Method Summary collapse
Instance Method Details
#write_attribute(attr_name, value, *options) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/enumerize/activemodel.rb', line 19 def write_attribute(attr_name, value, *) if self.class.enumerized_attributes[attr_name] _enumerized_values_for_validation[attr_name.to_s] = value end super end |