saucy/app/models/contribution.rb

17 lines
244 B
Ruby
Raw Normal View History

2022-06-25 12:48:46 +00:00
class Contribution < ApplicationRecord
belongs_to :member
2022-06-26 11:57:00 +00:00
has_paper_trail
2023-03-19 17:49:31 +00:00
def member_number
2023-03-19 18:56:26 +00:00
Member.unscoped.find(member_id).number
2023-03-19 17:49:31 +00:00
end
def member_display_name
member&.display_name
end
def amount
eurocents
end
2022-06-25 12:48:46 +00:00
end