Skip to content

Commit 190d2c1

Browse files
authored
Merge pull request #66 from code4lib/avoid_active_record_scoped_method
ActiveRecord no longer has a "scoped" method
2 parents 56da45d + 1cfd6ff commit 190d2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oai/provider/model/activerecord_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def find_scope(options)
105105
model.where(set: options[:set])
106106
else
107107
# Default to empty set, as we've tried everything else
108-
model.scoped(:limit => 0)
108+
model.none
109109
end
110110
end
111111

0 commit comments

Comments
 (0)