lib/ripple/associations/many_linked_proxy.rb in ripple-0.9.0.beta2 vs lib/ripple/associations/many_linked_proxy.rb in ripple-0.9.0
- old
+ new
@@ -24,9 +24,16 @@
new_target = @target.concat(Array(value))
replace new_target
self
end
+ def delete(value)
+ load_target
+ @target.delete(value)
+ replace @target
+ self
+ end
+
protected
def find_target
robjects.map {|robj| klass.send(:instantiate, robj) }
end
end