lib/findable/base.rb in findable-0.1.0 vs lib/findable/base.rb in findable-0.1.1
- old
+ new
@@ -112,10 +112,10 @@
delegate :count, :ids, :delete_all, to: :query
alias_method :destroy_all, :delete_all
def exists?(obj)
if _id = id_from(obj)
- query.exists?(data_key, _id)
+ query.exists?(_id)
else
false
end
end