Method: MiniForm::Model#attributes
- Defined in:
- lib/mini_form/model.rb
#attributes ⇒ Object
57 58 59 |
# File 'lib/mini_form/model.rb', line 57 def attributes Hash[self.class.attribute_names.map { |name| [name, public_send(name)] }] end |