Skip to content

Commit

Permalink
Merge pull request solidusio#2992 from nebulab/fix-deprecations-rails…
Browse files Browse the repository at this point in the history
…-5-2-2

Fix deprecations to make Solidus work with Rails 5.2.2
  • Loading branch information
tvdeyen authored Dec 7, 2018
2 parents 76a3b2d + 50346d6 commit 69e6932
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/app/models/spree/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/solidus_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 69e6932

Please sign in to comment.