mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Replace unnecessary uses of StringEx#to_url with ActiveSupport#parameterize
This commit is contained in:
@@ -176,7 +176,7 @@ module Spree
|
||||
end
|
||||
|
||||
def to_param
|
||||
number.to_s.to_url.upcase
|
||||
number.to_s.parameterize.upcase
|
||||
end
|
||||
|
||||
def completed?
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user