Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make code work with Ruby 1.8

  • Loading branch information...
commit bb523287e720570f585f21886dc71b2f5d8b7524 1 parent 415feb2
@iviney iviney 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.