Sha256: d851b9f1da7fbb5dbe92e99427fe9f713497aee0f90c2616a081635156ffcb27

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

class Tramway::Partner::PartnershipDecorator < ::Tramway::Core::ApplicationDecorator
  class << self
    def collections
      [ :all ]
    end
  end
  
  def title
    "#{object.organization.title} #{I18n.t("enumerize.tramway/partner/partnership.partnership_type.#{object.partnership_type}")} #{object.partner.title}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-partner-1.0.3.1 app/decorators/tramway/partner/partnership_decorator.rb
tramway-partner-1.0.3 app/decorators/tramway/partner/partnership_decorator.rb
tramway-partner-1.0.2 app/decorators/tramway/partner/partnership_decorator.rb
tramway-partner-1.0.1 app/decorators/tramway/partner/partnership_decorator.rb
tramway-partner-1.0 app/decorators/tramway/partner/partnership_decorator.rb