diff --git a/core/app/models/spree/taxon.rb b/core/app/models/spree/taxon.rb index f21cdb87975..0c4e2b5eff6 100644 --- a/core/app/models/spree/taxon.rb +++ b/core/app/models/spree/taxon.rb @@ -17,7 +17,7 @@ class Taxon < ActiveRecord::Base path: ':rails_root/public/spree/taxons/:id/:style/:basename.:extension', default_url: '/assets/default_taxon.png' - default_scope order: "#{self.table_name}.position" + default_scope -> { order("#{self.table_name}.position") } include Spree::Core::S3Support supports_s3 :icon