Sha256: 88d16e0c8fb68f6c2ef920f65cd72dde77d2e2d174da672586362200b6e432e0

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator
  class << self
    def collections
      [ :all ]
    end
  end

  delegate :description, to: :object
  decorate_association :partakings, decorator: Tramway::Event::PartakingFeatureDecorator

  def title
    "#{fa_icon(object.icon)} #{object.title}".html_safe
  end

  def background
    object.photo
  end

  def anchor
    "section-#{object.id}"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-event-1.6 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.5.4 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.5.3 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.5.2 app/decorators/tramway/event/section_decorator.rb