Class: Tramway::Event::PersonDecorator

Inherits:
Core::ApplicationDecorator
  • Object
show all
Defined in:
app/decorators/tramway/event/person_decorator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.collectionsObject



5
6
7
# File 'app/decorators/tramway/event/person_decorator.rb', line 5

def collections
  [:all]
end

Instance Method Details

#nameObject



12
13
14
# File 'app/decorators/tramway/event/person_decorator.rb', line 12

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