Method: ActiveRecord::FixtureSet::TableRows#to_hash
- Defined in:
- activerecord/lib/active_record/fixture_set/table_rows.rb
#to_hash ⇒ Object
23 24 25 |
# File 'activerecord/lib/active_record/fixture_set/table_rows.rb', line 23 def to_hash @tables.transform_values { |rows| rows.map(&:to_hash) } end |