saucy/app/models/contribution.rb

17 lines
244 B
Ruby

class Contribution < ApplicationRecord
belongs_to :member
has_paper_trail
def member_number
Member.unscoped.find(member_id).number
end
def member_display_name
member&.display_name
end
def amount
eurocents
end
end