diff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rb index 250c8a9d8e8..d6ba055778c 100644 --- a/core/app/models/spree/order.rb +++ b/core/app/models/spree/order.rb @@ -552,6 +552,7 @@ def apply_shipping_promotions Spree::PromotionHandler::Shipping.new(self).activate recalculate end + alias_method :apply_free_shipping_promotions, :apply_shipping_promotions deprecate apply_free_shipping_promotions: :apply_shipping_promotions, deprecator: Spree::Deprecation # Clean shipments and make order back to address state diff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rb index aa1ec02cd98..267514550cf 100644 --- a/core/app/models/spree/store.rb +++ b/core/app/models/spree/store.rb @@ -28,7 +28,7 @@ class Store < Spree::Base scope :by_url, lambda { |url| where("url like ?", "%#{url}%") } class << self - deprecate :by_url, "Spree::Store.by_url is DEPRECATED", deprecator: Spree::Deprecation + deprecate by_url: "Spree::Store.by_url is DEPRECATED", deprecator: Spree::Deprecation end def available_locales diff --git a/core/solidus_core.gemspec b/core/solidus_core.gemspec index 561584ee2cb..12fd56a8d15 100644 --- a/core/solidus_core.gemspec +++ b/core/solidus_core.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |s| actionmailer actionpack actionview activejob activemodel activerecord activesupport railties ].each do |rails_dep| - s.add_dependency rails_dep, ['>= 5.1', '< 5.2.2'] + s.add_dependency rails_dep, ['>= 5.1', '< 5.3.x'] end s.add_dependency 'activemerchant', '~> 1.66'