Class: Tramway::Partner::PartnershipDecorator

Inherits:
Core::ApplicationDecorator
  • Object
show all
Defined in:
app/decorators/tramway/partner/partnership_decorator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.collectionsObject



3
4
5
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 3

def collections
  [ :all ]
end

Instance Method Details

#titleObject



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