Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
Alias line_item.total to amount_with_volume_discount
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wróbel committed Apr 8, 2011
1 parent ad5e78d commit e1df8aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/line_item_decorator.rb
Expand Up @@ -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
Expand Down

0 comments on commit e1df8aa

Please sign in to comment.