Sha256: d1826783f82b32863ccb81ce232cb419bd64d69a8df4ebaed19a5cc85cac4755
Contents?: true
Size: 562 Bytes
Versions: 22
Compression:
Stored size: 562 Bytes
Contents
class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator class << self def collections [ :all ] end end delegate :description, to: :object 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 object.event.title end end
Version data entries
22 entries across 22 versions & 1 rubygems