Sha256: 62239f12d2359f656baaa99d29e6f2ebdf6c632644da869d0c9e62e47f170837
Contents?: true
Size: 632 Bytes
Versions: 8
Compression:
Stored size: 632 Bytes
Contents
class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator class << self def collections [ :all ] end end delegate :description, to: :object decorate_association :event decorate_association :partakings, decorator: Tramway::Event::PartakingFeatureDecorator def name "#{object.title} | #{object.event.title}" end 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 event.title end def event_duration event.duration end end
Version data entries
8 entries across 8 versions & 1 rubygems