Class: Munificent::FundraiserPresenter
- Inherits:
-
Admin::ApplicationPresenter
- Object
- ActionView::Base
- Admin::ApplicationPresenter
- Munificent::FundraiserPresenter
- Defined in:
- app/presenters/munificent/fundraiser_presenter.rb
Instance Attribute Summary
Attributes inherited from Admin::ApplicationPresenter
Instance Method Summary collapse
Methods inherited from Admin::ApplicationPresenter
delegate, #initialize, #name, present, presenter_class_for
Constructor Details
This class inherits a constructor from Munificent::Admin::ApplicationPresenter
Instance Method Details
#overpayment_mode ⇒ Object
22 23 24 |
# File 'app/presenters/munificent/fundraiser_presenter.rb', line 22 def overpayment_mode record.overpayment_mode.humanize end |
#state ⇒ Object
16 17 18 19 20 |
# File 'app/presenters/munificent/fundraiser_presenter.rb', line 16 def state tag.span(class: "badge text-bg-#{badge_type}") do record.state.humanize end end |