Method: ActiveModel::AttributeSet#write_from_user
- Defined in:
- activemodel/lib/active_model/attribute_set.rb
#write_from_user(name, value) ⇒ Object
58 59 60 61 62 |
# File 'activemodel/lib/active_model/attribute_set.rb', line 58 def write_from_user(name, value) raise FrozenError, "can't modify frozen attributes" if frozen? @attributes[name] = self[name].with_value_from_user(value) value end |