Method: ActiveModel::AttributeSet#to_hash
- Defined in:
- activemodel/lib/active_model/attribute_set.rb
#to_hash ⇒ Object Also known as: to_h
36 37 38 |
# File 'activemodel/lib/active_model/attribute_set.rb', line 36 def to_hash keys.index_with { |name| self[name].value } end |