Class: Tramway::Partner::PartnershipDecorator
- Inherits:
-
Core::ApplicationDecorator
- Object
- Core::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
3 4 5 |
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 3 def collections [ :all ] end |
Instance Method Details
#title ⇒ Object
8 9 10 |
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 8 def title "#{object.organization.title} #{I18n.t("enumerize.tramway/partner/partnership.partnership_type.#{object.partnership_type}")} #{object.partner.title}" end |