Class ActiveRecord::Associations::PolymorphicAssociation
In: lib/has_many_polymorphs/association.rb
Parent: HasManyThroughAssociation

The association class for a has_many_polymorphs association.

Methods

<<   clear   concat   construct_scope   delete   find   push  

External Aliases

construct_quoted_owner_attributes -> construct_owner_attributes
custom_conditions -> conditions
custom_conditions -> sql_conditions

Public Instance methods

Push a record onto the association. Triggers a database load for a uniqueness check only if :skip_duplicates is true. Return value is undefined.

Clears all records from the association. Returns an empty array.

concat(*records)

Alias for #<<

Deletes a record from the association. Return value is undefined.

Runs a find against the association contents, returning the matched records. All regular find options except :include are supported.

push(*records)

Alias for #<<

[Validate]