lib/og/store.rb in og-0.18.1 vs lib/og/store.rb in og-0.19.0
- old
+ new
@@ -110,13 +110,13 @@
end
# Save an object to store. Insert if this is a new object or
# update if this is already inserted in the database.
- def save(obj)
+ def save(obj, options = nil)
if obj.saved?
- obj.og_update(self)
+ obj.og_update(self, options)
else
obj.og_insert(self)
end
end
alias_method :<<, :save
@@ -127,11 +127,11 @@
obj.og_insert(self)
end
# Update an object in the store.
- def update(obj, properties = nil)
- obj.og_update(self)
+ def update(obj, options = nil)
+ obj.og_update(self, options)
end
# Update selected properties of an object or class of
# objects.