set_bool_element

set_bool_element(idxs, val) Instance Public methods

name_for_path

name_for_path() Instance Public methods Name to use to generate the url: modules and classes that are aliases for another module or class return the name of the latter.

build

build(attributes = {}, &block) Instance Public methods Returns a new object of the collection type that has been instantiated with attributes and linked to this object, but have not yet been saved. You can pass an array of attributes hashes, this will return an array with the new objects. class Person has_many :pets end person.pets.build # => #<Pet id: nil, name: nil, person_id: 1> person.pets.build(name: 'Fancy-Fancy') # => #<Pet id: nil, name: "Fancy-Fancy"

last

last(*args) Instance Public methods Returns the last record, or the last n records, from the collection. If the collection is empty, the first form returns nil, and the second form returns an empty array. class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.

test_alt_inheritance_save

test_alt_inheritance_save() Instance Public methods

perforation_activate

perforation_activate(mode) Instance Public methods

new

new(*arg) Class Public methods Description Create a new URI::HTTP object from generic URI components as per RFC 2396. No HTTP-specific syntax checking (as per RFC 1738) is performed. Arguments are scheme, userinfo, host, port, registry, path, opaque, query and fragment, in that order. Example: uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path", "query", 'fragment') See also URI::Generic.new

unset_attrib

unset_attrib(name) Instance Public methods

sanitize_sql_hash

sanitize_sql_hash(attrs, default_table_name = self.table_name) Instance Protected methods Alias for: sanitize_sql_hash_for_conditions

disconnect!

disconnect!() Instance Public methods Disconnects all connections in the pool, and clears the pool.