Sha256: e1c82ae08097e02774d6afdc62d2cd1aac4f6af2c7a1fa2667a413002d9fb313

Contents?: true

Size: 275 Bytes

Versions: 74

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

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

  decorate_association :sections

  def name
    "#{object.first_name} #{object.last_name}"
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
tramway-event-1.12.7 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.6.4 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.6.3 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.6.2 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.6 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.5 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.4 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.10 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.9 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.8 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.7 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.6 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.5 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.4 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.3 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.2 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3.1 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.3 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.2 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.1.1 app/decorators/tramway/event/person_decorator.rb