Class: DataMapper::Associations::ManyToMany::Proxy
Instance Method Summary
collapse
#<<, #all, #build, #create, #delete_at, #destroy!, #first, #kind_of?, #new, #pop, #push, #reload, #replace, #respond_to?, #shift, #unshift, #update, #update!
#assert_kind_of
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class DataMapper::Associations::OneToMany::Proxy
Instance Method Details
#clear ⇒ Object
86
87
88
89
|
# File 'lib/dm-core/associations/many_to_many.rb', line 86
def clear
near_association.clear
super
end
|
#delete(resource) ⇒ Object
80
81
82
83
84
|
# File 'lib/dm-core/associations/many_to_many.rb', line 80
def delete(resource)
through = near_association.get(*(@parent.key + resource.key))
near_association.delete(through)
orphan_resource(super)
end
|
#destroy ⇒ Object
91
92
93
94
|
# File 'lib/dm-core/associations/many_to_many.rb', line 91
def destroy
near_association.destroy
super
end
|
#save ⇒ Object
96
97
|
# File 'lib/dm-core/associations/many_to_many.rb', line 96
def save
end
|