Class: Tramway::Partner::PartnershipDecorator

Inherits:
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



5
6
7
# File 'app/decorators/tramway/partner/partnership_decorator.rb', line 5

def collections
  [:all]
end

Instance Method Details

#titleObject



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