Flowdock
method

new

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: TableRows
new(table_name, model_class:, fixtures:, config:) public

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 9
      def initialize(table_name, model_class,, fixtures,, config))
        @model_class = model_class

        # track any join tables we need to insert later
        @tables = Hash.new { |h, table| h[table] = [] }

        # ensure this table is loaded before any HABTM associations
        @tables[table_name] = nil

        build_table_rows_from(table_name, fixtures, config)
      end
Register or log in to add new notes.