saucy/app/models/contribution.rb

17 lines
220 B
Ruby

class Contribution < ApplicationRecord
belongs_to :member
has_paper_trail
def member_number
member&.number
end
def member_display_name
member&.display_name
end
def amount
eurocents
end
end