Replace unnecessary uses of StringEx#to_url with ActiveSupport#parameterize

This commit is contained in:
Matt-Yorkley
2022-01-15 10:22:10 +00:00
parent c5c5738382
commit 7062cab31f
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ module Spree
end
def to_param
number.to_s.to_url.upcase
number.to_s.parameterize.upcase
end
def completed?

View File

@@ -70,7 +70,7 @@ module Spree
def to_param
generate_shipment_number unless number
number.to_s.to_url.upcase
number.parameterize.upcase
end
def backordered?