Skip to content

Commit

Permalink
make association line more concise
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonwan committed Apr 12, 2024
1 parent f7268b0 commit af17987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/items/donation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def self.default_code
validates_presence_of :account_code_id

belongs_to :customer
belongs_to :recurring_donation, class_name: 'RecurringDonation', foreign_key: :recurring_donation_id
belongs_to :recurring_donation

validates_numericality_of :amount
validates_inclusion_of :amount, :in => 1..10_000_000, :message => "must be at least 1 dollar"
Expand Down

0 comments on commit af17987

Please sign in to comment.