Fix warning on Product variants_including_master scope

This commit is contained in:
Matt-Yorkley
2021-03-11 18:28:16 +00:00
parent 3a5f763bf2
commit 4505fa7fd9

View File

@@ -56,7 +56,7 @@ module Spree
}, class_name: 'Spree::Variant'
has_many :variants_including_master,
-> { order("#{::Spree::Variant.quoted_table_name}.position ASC") },
-> { order("spree_variants.position ASC") },
class_name: 'Spree::Variant',
dependent: :destroy