Sha256: 12a88a4d44fae77969e45da8a4baf3b3bd78db4f03bfad56d374ae8bcc414a8c
Contents?: true
Size: 554 Bytes
Versions: 17
Compression:
Stored size: 554 Bytes
Contents
class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator class << self def collections [ :all ] end def list_attributes [ :event_title ] end end delegate :description, to: :object decorate_association :partakings, decorator: Tramway::Event::PartakingFeatureDecorator def title "#{fa_icon(object.icon)} #{object.title}".html_safe end def background object.photo end def anchor "section-#{object.id}" end def event_title object.event.title end end
Version data entries
17 entries across 17 versions & 1 rubygems