Permalink
Browse files

Fix properly for Ruby 1.8 and 1.9

  • Loading branch information...
1 parent 32f7738 commit 2c577a70471796fd2b3ed986d3a1c4bc63e801f8 @jviney committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/products_helper_decorator.rb
View
2 app/helpers/products_helper_decorator.rb
@@ -4,4 +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.public_instance_methods.include?("variant_price_diff_with_volume_discount")
+end unless ProductsHelper.instance_method_names.include?("variant_price_diff_with_volume_discount")

0 comments on commit 2c577a7

Please sign in to comment.