Fix inflection issue
This commit is contained in:
parent
9e20bc73bf
commit
04ebf6a74c
|
@ -69,7 +69,7 @@ Spree::CheckoutController.class_eval do
|
||||||
|
|
||||||
unless payment_method.preferred_no_shipping
|
unless payment_method.preferred_no_shipping
|
||||||
ship_address = @ppx_details.address
|
ship_address = @ppx_details.address
|
||||||
order_ship_address = Address.new :firstname => @ppx_details.params["first_name"],
|
order_ship_address = Spree::Address.new :firstname => @ppx_details.params["first_name"],
|
||||||
:lastname => @ppx_details.params["last_name"],
|
:lastname => @ppx_details.params["last_name"],
|
||||||
:address1 => ship_address["address1"],
|
:address1 => ship_address["address1"],
|
||||||
:address2 => ship_address["address2"],
|
:address2 => ship_address["address2"],
|
||||||
|
|
|
@ -22,6 +22,10 @@ module SpreePaypalExpress
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ActiveSupport::Inflector.inflections do |inflect|
|
||||||
|
inflect.singular 'express', 'express'
|
||||||
|
end
|
||||||
|
|
||||||
config.to_prepare &method(:activate).to_proc
|
config.to_prepare &method(:activate).to_proc
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue