Class: Tramway::Partner::PartnershipDecorator
- Inherits:
-
ApplicationDecorator
- Object
- ApplicationDecorator
- Tramway::Partner::PartnershipDecorator
- Defined in:
- app/decorators/tramway/partner/partnership_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.collections ⇒ Object
5 6 7 |
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 5 def collections [:all] end |
Instance Method Details
#title ⇒ Object
10 11 12 |
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 10 def title "#{object.organization.title} #{I18n.t("enumerize.tramway/partner/partnership.partnership_type.#{object.partnership_type}")} #{object.partner.title}" end |