Sha256: 94f86e46aa4ab6a674313c2a038b6a599e33c7cdf654eba0560659be59f4c22e

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

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

  delegate :title, to: :object
  delegate :description, to: :object
  delegate :participant_form_fields, to: :object
  delegate :sections, to: :object

  def background
    object.photo
  end

  def tagline
    ''
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-event-1.2.4 app/decorators/tramway/event/event_decorator.rb
tramway-event-1.2.3 app/decorators/tramway/event/event_decorator.rb