mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Replace #scoped, which is now deprecated and removed in Rails 4.1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user