Skip to content

Instantly share code, notes, and snippets.

@ka8725
Created October 31, 2011 14:48
Show Gist options
  • Select an option

  • Save ka8725/1327645 to your computer and use it in GitHub Desktop.

Select an option

Save ka8725/1327645 to your computer and use it in GitHub Desktop.
Visibility
begin
api_rates = post_service.find_rates(destination, boxes)
rescue ActiveMerchant::Shipping::ResponseError => e
raise Order::ShipmentError, e.message
end
api_rates = api_rates.select {|r| shipping_method_names.include?(r.service_name) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment