Skip to content

Commit

Permalink
Use correct default_scope syntax for Rails 4 in Taxon
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Oct 22, 2013
1 parent 1c22b7c commit 3958934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/taxon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3958934

Please sign in to comment.