Permalink
Browse files

Make code work with Ruby 1.8

  • Loading branch information...
1 parent 415feb2 commit bb523287e720570f585f21886dc71b2f5d8b7524 @iviney iviney committed Jan 31, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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")

0 comments on commit bb52328

Please sign in to comment.