method

find

rails latest stable - Class: Fixture

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

find()
public

No documentation available.

# File activerecord/lib/active_record/fixtures.rb, line 817
  def find
    if model_class
      model_class.find(self[model_class.primary_key])
    else
      raise FixtureClassNotFound, "No class attached to find."
    end
  end