Fix inflection issue

This commit is contained in:
John Dyer 2011-11-17 15:36:27 -05:00
parent 9e20bc73bf
commit 04ebf6a74c
2 changed files with 5 additions and 1 deletions

View File

@ -69,7 +69,7 @@ Spree::CheckoutController.class_eval do
unless payment_method.preferred_no_shipping
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"],
:address1 => ship_address["address1"],
:address2 => ship_address["address2"],

View File

@ -22,6 +22,10 @@ module SpreePaypalExpress
]
end
ActiveSupport::Inflector.inflections do |inflect|
inflect.singular 'express', 'express'
end
config.to_prepare &method(:activate).to_proc
end
end