==

==(comparison_object) Instance Public methods Returns true if comparison_object is the same exact object, or comparison_object is of the same type and self has an ID and it is equal to comparison_object.id. Note that new records are different from any other record by definition, unless the other record is the receiver itself. Besides, if you fetch existing records with select and leave the ID out, you're on your own, this predicate will return false. Note also that destroying a rec

l

l(*args) Instance Public methods Alias for: localize

version

version(name, version, comment = nil) Class Public methods

to_a

to_a() Instance Public methods

partial_hash_collection

partial_hash_collection() Instance Public methods

_get

_get(key) Instance Public methods Alias for: []

to_ary

to_ary() Instance Public methods Returns a new array of objects from the collection. If the collection hasn't been loaded, it fetches the records from the database. class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 4, name: "Benny", person_id: 1>, # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] other_pets = person.pets.to_ary # => [ # #<Pet id:

years_ago

years_ago(years) Instance Public methods Returns a new date/time the specified number of years ago.

body

body() Instance Public methods Returns the content of the response as a string. This contains the contents of any calls to render.

select

select(sql, name = nil, binds = []) Instance Protected methods Returns an ActiveRecord::Result instance.