Sha256: 3eafdda880e9d20facd820e083f67da5434749073e738c61a2885aed6fd1451c

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

class Tramway::Event::SectionDecorator < ::Tramway::Core::ApplicationDecorator
  class << self
    def collections
      [ :all ]
    end
  end

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

  delegate :description, to: :object

  def background
    object.photo
  end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tramway-event-1.5.1 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.5 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.4 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.3 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.6 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.5 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.4 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.3 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.2 app/decorators/tramway/event/section_decorator.rb
tramway-event-1.2.1 app/decorators/tramway/event/section_decorator.rb