Sha256: 63e4f4f4b0cda3a7eb6856dee0fbafba7bdf0d53022b4a6c4f7ff667ac5a4530

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

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

  delegate :title, to: :object
  delegate :description, to: :object

  def background
    object.photo
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-event-1.2 app/decorators/tramway/event/section_decorator.rb