lib/mongoid/associations/accessor.rb in mongoid-0.6.10 vs lib/mongoid/associations/accessor.rb in mongoid-0.7.0
- old
+ new
@@ -19,10 +19,10 @@
# name: The name of the association
# document: The base document to handle the access for.
# object: The object that was passed in to the setter method.
# options: optional options.
def set(type, name, document, object, options ={})
- type.update(object, document, name)
+ type.update(object, document, name, options)
end
end
end
end
end