Method: ActiveRecord::FixtureSet::TableRow#initialize
- Defined in:
- lib/active_record/fixture_set/table_row.rb
#initialize(fixture, table_rows:, label:, now:) ⇒ TableRow
Returns a new instance of TableRow.
38 39 40 41 42 43 44 |
# File 'lib/active_record/fixture_set/table_row.rb', line 38 def initialize(fixture, table_rows:, label:, now:) @table_rows = table_rows @label = label @now = now @row = fixture.to_hash fill_row_model_attributes end |