Skip to content
Browse files

Pass options to #create method

Change-Id: I4c6205a1437eb96cda4e4468b94b052e39f3652d
Reviewed-on: http://review.couchbase.org/21774
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent 7d11648 commit acc4ad0f7e117058fab99966dad9e445a4c575b8 @avsej committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/couchbase/model.rb
View
2 lib/couchbase/model.rb
@@ -494,7 +494,7 @@ def save(options = {})
if respond_to?(:valid?) && !valid?
raise Couchbase::Error::RecordInvalid.new(self)
end
- return create unless meta
+ return create(options) unless meta
value = @_raw ? @_raw : attributes_with_values
unless @meta
@meta = {}

0 comments on commit acc4ad0

Please sign in to comment.
Something went wrong with that request. Please try again.