Sha256: 5730c43c98d416e6bcb66980cb8529b17e402bc39780645c192c75a28e763d74

Contents?: true

Size: 271 Bytes

Versions: 3

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

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

  decorate_association :partakings

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-2.0.1 app/decorators/tramway/event/person_decorator.rb
tramway-event-2.0.0.1 app/decorators/tramway/event/person_decorator.rb
tramway-event-2.0 app/decorators/tramway/event/person_decorator.rb