method

build_table_rows_from

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: TableRows
build_table_rows_from(table_name, fixtures) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.