Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from iviney/patch-1

Make code work with Ruby 1.8
  • Loading branch information...
commit 32f77382d9d5fc9c57f1e199ef6c87a6363dba7d 2 parents 415feb2 + bb52328
@jviney authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  app/helpers/products_helper_decorator.rb
View
3  app/helpers/products_helper_decorator.rb
@@ -4,5 +4,4 @@ def variant_price_diff_with_volume_discount variant
variant_price_diff_without_volume_discount variant
end
alias_method_chain :variant_price_diff, :volume_discount
-end unless ProductsHelper.instance_methods.include? \
- :variant_price_diff_with_volume_discount
+end unless ProductsHelper.public_instance_methods.include?("variant_price_diff_with_volume_discount")
Please sign in to comment.
Something went wrong with that request. Please try again.