static public Method

Fixture.new(fixture, class_name)

There's no documentation for this item.

Source Code

# File active_record/fixtures.rb, line 763
def initialize(fixture, class_name)
  case fixture
    when Hash, YAML::Omap
      @fixture = fixture
    when String
      @fixture = read_fixture_file(fixture)
    else
      raise ArgumentError, "Bad fixture argument #{fixture.inspect} during creation of #{class_name} fixture"
  end

  @class_name = class_name
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.