Flowdock
method

instantiate_fixtures

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: Fixtures
instantiate_fixtures(object, fixture_name, fixtures, load_instances = true) 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/fixtures.rb, line 422
    def self.instantiate_fixtures(object, fixture_name, fixtures, load_instances = true)
      if load_instances
        fixtures.each do |name, fixture|
          begin
            object.instance_variable_set "@#{name}", fixture.find
          rescue FixtureClassNotFound
            nil
          end
        end
      end
    end
Register or log in to add new notes.