method
build_table_rows_from
rails latest stable - Class:
ActiveRecord::FixtureSet::TableRows
build_table_rows_from(table_name, fixtures)private
No documentation available.
# File activerecord/lib/active_record/fixture_set/table_rows.rb, line 32
def build_table_rows_from(table_name, fixtures)
now = ActiveRecord.default_timezone == :utc ? Time.now.utc : Time.now
@tables[table_name] = fixtures.map do |label, fixture|
TableRow.new(
fixture,
table_rows: self,
label: label,
now: now,
)
end
end