Sha256: a574b4261445c09b1a733149e724555e3b2ff6a847d8d6b89c5ce3ba094d5fe4

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

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

  decorate_association :partakings

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-event-1.12.9.1 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.9 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.8.2 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.8.1 app/decorators/tramway/event/person_decorator.rb
tramway-event-1.12.8 app/decorators/tramway/event/person_decorator.rb