method
instantiate_fixtures
instantiate_fixtures(object, table_name, fixtures, load_instances = true)
public
Hide source
# File activerecord/lib/active_record/fixtures.rb, line 482 def self.instantiate_fixtures(object, table_name, fixtures, load_instances = true) object.instance_variable_set "@#{table_name.to_s.gsub('.','_')}", fixtures if load_instances ActiveRecord::Base.silence do fixtures.each do |name, fixture| begin object.instance_variable_set "@#{name}", fixture.find rescue FixtureClassNotFound nil end end end end end