Permalink
Browse files

Alias line_item.total to amount_with_volume_discount

  • Loading branch information...
1 parent ad5e78d commit e1df8aa6946f63b5774089a3aaf7eff82bb60c44 @amw amw committed Apr 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/line_item_decorator.rb
@@ -21,6 +21,7 @@ def amount_with_volume_discount
amount_without_volume_discount + self.volume_discount
end
alias_method_chain :amount, :volume_discount
+ alias total amount
private
def check_update_volume_discount

0 comments on commit e1df8aa

Please sign in to comment.