Sha256: 36caf5d2a703277d641a67350bd702eff39c4826876388885c02cbadcaa423e7

Contents?: true

Size: 287 Bytes

Versions: 18

Compression:

Stored size: 287 Bytes

Contents

class ::Tramway::Event::PartakingFeatureDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator
  def text
    object.position&.html_safe
  end

  def title
    "#{object.person.first_name} #{object.person.last_name}"
  end

  def image
    object.person.photo.small.url
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
tramway-event-1.8.5 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8.4 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8.3 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8.2 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8.1.1 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8.1 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.8 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.7.2 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.7.1 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.7 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.6.4 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.6.3 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.6.2 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.6.1 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.6 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.5.4 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.5.3 app/decorators/tramway/event/partaking_feature_decorator.rb
tramway-event-1.5.2 app/decorators/tramway/event/partaking_feature_decorator.rb