Method: SimpleModel::Attributes#attributes=
- Defined in:
- lib/simple_model/attributes.rb
#attributes=(attrs) ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/simple_model/attributes.rb', line 35 def attributes=attrs if attrs.class.name == "Hash" if config.attributes_store == :symbol attrs.symbolize_keys! else attrs.stringify_keys! end end @attributes = attrs end |