lib/pluck_all.rb in pluck_all-1.2.1 vs lib/pluck_all.rb in pluck_all-1.2.2
- old
+ new
@@ -105,5 +105,11 @@
end
def self.pluck_array(*args)
self.where('').pluck_array(*args)
end
end
+
+module ActiveRecord::NullRelation
+ def pluck_all(*args)
+ []
+ end
+end