Skip to content

Commit

Permalink
New credit scope for Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Dec 22, 2011
1 parent 0ff8de6 commit 097a135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/app/models/spree/adjustment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Adjustment < ActiveRecord::Base
scope :shipping, lambda { where(:label => I18n.t(:shipping)) }
scope :optional, where(:mandatory => false)
scope :eligible, where(:eligible => true)
scope :credit, where("amount < 0")

after_save :update_adjustable
after_destroy :update_adjustable
Expand Down

0 comments on commit 097a135

Please sign in to comment.