Sha256: c6b1ad92d3ec429719d27906c09b69a818fb482a1c51d40183f50bc925e2caa0

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

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

    def list_attributes
      [:event_title]
    end
  end

  def title
    "#{object.title} #{object.event.title}"
  end

  def event_title
    object.event.title
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tramway-event-1.9.22 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.21.1 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.21 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.20.1 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.20 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.8 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.7 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.6 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.5 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.4 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.3 app/decorators/tramway/event/participant_form_field_decorator.rb
tramway-event-1.9.19.2 app/decorators/tramway/event/participant_form_field_decorator.rb