Skip to content

Commit

Permalink
Merge pull request spree#766 from thedarkone/1-9-meth-check
Browse files Browse the repository at this point in the history
Ruby 1.9 method defined check fix
  • Loading branch information
radar committed Nov 15, 2011
2 parents a0c9996 + 2177799 commit 6c6b105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promo/app/models/spree/order_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def products
line_items.map {|li| li.variant.product}
end

unless self.instance_methods.include?('update_adjustments_with_promotion_limiting')
unless self.method_defined?('update_adjustments_with_promotion_limiting')
def update_adjustments_with_promotion_limiting
update_adjustments_without_promotion_limiting
return if adjustments.promotion.eligible.none?
Expand Down

0 comments on commit 6c6b105

Please sign in to comment.