Module: DonationRecipientConcern

Extended by:
ActiveSupport::Concern
Included in:
SBF::Client::Event, SBF::Client::Fund, SBF::Client::Fundraiser, SBF::Client::Memorial, SBF::Client::Participant, SBF::Client::Team
Defined in:
lib/stbaldricks/entities/concerns/donation_recipient_concern.rb

Instance Method Summary collapse

Instance Method Details

#donation_recipient_urlObject



6
7
8
9
10
# File 'lib/stbaldricks/entities/concerns/donation_recipient_concern.rb', line 6

def donation_recipient_url
  donate_url = "/donate/#{model_name.element}/#{id}"
  donate_url << "/#{event_year}" if respond_to?(:event_year)
  donate_url
end