lib/superstore/scope/finder_methods.rb in superstore-2.1.0 vs lib/superstore/scope/finder_methods.rb in superstore-2.1.1

- old
+ new

@@ -20,9 +20,13 @@ def first limit(1).to_a.first end + def to_ids + klass.adapter.to_ids self + end + private def find_one(id) if id.blank? raise Superstore::RecordNotFound, "Couldn't find #{self.name} with key #{id.inspect}"