Class: Munificent::Donation

Inherits:
ApplicationRecord show all
Includes:
AASM
Defined in:
app/models/munificent/donation.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#to_s

Instance Method Details

#charity_nameObject



49
50
51
# File 'app/models/munificent/donation.rb', line 49

def charity_name
  charity&.name
end

#donator_nameObject



53
54
55
# File 'app/models/munificent/donation.rb', line 53

def donator_name
  super || I18n.t("common.abstract.anonymous")
end