From 3958934e643bdea81c6873f0f96591d1cf35831d Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Wed, 23 Oct 2013 09:00:55 +1100 Subject: [PATCH] Use correct default_scope syntax for Rails 4 in Taxon --- core/app/models/spree/taxon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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