Class: CouchFoo::Associations::HasAndBelongsToManyAssociation
- Inherits:
-
AssociationCollection
- Object
- AssociationProxy
- AssociationCollection
- CouchFoo::Associations::HasAndBelongsToManyAssociation
- Defined in:
- lib/couch_foo/associations/has_and_belongs_to_many_association.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from AssociationCollection
#<<, #any?, #build, #clear, #delete, #delete_all, #destroy_all, #empty?, #find, #first, #include?, #initialize, #last, #length, #replace, #reset, #size, #sum, #to_ary, #uniq
Methods inherited from AssociationProxy
#===, #conditions, #initialize, #inspect, #loaded, #loaded?, #proxy_owner, #proxy_reflection, #proxy_respond_to?, #proxy_target, #reload, #reset, #respond_to?, #target, #target=
Constructor Details
This class inherits a constructor from CouchFoo::Associations::AssociationCollection
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CouchFoo::Associations::AssociationCollection
Instance Method Details
#create(attributes = {}) ⇒ Object
5 6 7 |
# File 'lib/couch_foo/associations/has_and_belongs_to_many_association.rb', line 5 def create(attributes = {}) create_record(attributes) { |record| insert_record(record, true) } end |
#create!(attributes = {}) ⇒ Object
9 10 11 |
# File 'lib/couch_foo/associations/has_and_belongs_to_many_association.rb', line 9 def create!(attributes = {}) create_record(attributes) { |record| insert_record(record, true) } end |