Permalink
Browse files

Merge pull request #6 from thogg4/master

Added dynamic shipping methods to cart
  • Loading branch information...
2 parents 2bd124a + 573f962 commit 135dc76611cff1ba1e2d575ddffc9fb1f8ad255d @topfunky committed Mar 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/google-checkout/cart.rb
@@ -108,7 +108,6 @@ def flat_rate_shipping(frs_options)
# This method sets the shipping methods
# +options+ should be an array with hashes containing the following options:
- # * method (must be: flat-rate shipping, )
# * name
# * price
# You may fill an some optional values as well:
@@ -119,7 +118,7 @@ def shipping_methods(methods)
# and the bug will be harder to track.
methods.each do |method|
- missing_keys = [ :method, :name, :price ].select { |key|
+ missing_keys = [ :name, :price ].select { |key|
!method.include? key
}
unless missing_keys.empty?

0 comments on commit 135dc76

Please sign in to comment.