Replace #scoped, which is now deprecated and removed in Rails 4.1

This commit is contained in:
Matt-Yorkley
2020-11-04 23:54:26 +00:00
parent 5c5a6361bf
commit 93fe8dbc5f

View File

@@ -136,7 +136,7 @@ module Spree
end
def self.indexed
scoped.index_by(&:id)
where(nil).index_by(&:id)
end
def self.active(currency = nil)