There's no documentation for this item.
| Public Methods |
| << |
Adds records to the association. The source record and its associates must
have ids in order to create records associating them, so this will raise
ActiveRecord::HasManyThroughCantAssociateNewRecords if either is a new
record. Calls create! so you can rescue errors.
|
| build |
|
| count |
|
| create! |
|
| delete |
Removes records from this association. Does not destroy
records.
|
| find |
|
| method |
Alias for #<<
|
| new |
|
| new |
Alias for #build
|
| reset |
|
| size |
Returns the size of the collection by executing a SELECT COUNT(*) query if
the collection hasn’t been loaded and calling collection.size if it
has. If it’s more likely than not that the collection does have a
size larger than zero and you need to fetch that collection afterwards,
it’ll take one less SELECT query if you use length.
|
| sum |
Calculate sum using SQL, not Enumerable
|
<code/>and<pre/>for code samples.