Method: Undestroy::Config#primitive_fields
- Defined in:
- lib/undestroy/config.rb
#primitive_fields(object) ⇒ Object
50 51 52 53 54 |
# File 'lib/undestroy/config.rb', line 50 def primitive_fields(object) self.fields.inject({}) do |hash, (key, field)| hash.merge(key => field.value(object)) end end |