Skip to content

Commit

Permalink
More namespace escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekOnCoffee committed Feb 28, 2015
1 parent 3c8bfed commit 693a6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/spree/calculator/shipping/ups/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def carrier
carrier_details.merge!(:origin_account => shipper_number)
end

ActiveShipping::UPS.new(carrier_details)
::ActiveShipping::UPS.new(carrier_details)
end

protected
Expand Down
6 changes: 3 additions & 3 deletions lib/spree/active_shipping/ups_override.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def build_rate_request(origin, destination, packages, options={})
pickup_type = options[:pickup_type] || :daily_pickup

root_node << XmlNode.new('PickupType') do |pickup_type_node|
pickup_type_node << XmlNode.new('Code', ActiveShipping::UPS::PICKUP_CODES[pickup_type])
pickup_type_node << XmlNode.new('Code', ::ActiveShipping::UPS::PICKUP_CODES[pickup_type])
# not implemented: PickupType/PickupDetails element
end
cc = options[:customer_classification] || ActiveShipping::UPS::DEFAULT_CUSTOMER_CLASSIFICATIONS[pickup_type]
cc = options[:customer_classification] || ::ActiveShipping::UPS::DEFAULT_CUSTOMER_CLASSIFICATIONS[pickup_type]
root_node << XmlNode.new('CustomerClassification') do |cc_node|
cc_node << XmlNode.new('Code', ActiveShipping::UPS::CUSTOMER_CLASSIFICATIONS[cc])
cc_node << XmlNode.new('Code', ::ActiveShipping::UPS::CUSTOMER_CLASSIFICATIONS[cc])
end

root_node << XmlNode.new('Shipment') do |shipment|
Expand Down

0 comments on commit 693a6de

Please sign in to comment.