Sha256: 5009828ffc1b6a8d4b9916dcb8e12daaea4243d741ce34cdc852677ff6960758

Contents?: true

Size: 360 Bytes

Versions: 34

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

class ::Tramway::Event::SectionFeatureDecorator < ::Tramway::Landing::BlockTypes::FeaturesDecorator
  delegate_attributes :icon, :title, :description

  def text
    object.description.scan(%r{<strong>.*?</strong>}).join(' ')
  end

  def image
    object.photo.small.url
  end

  def anchor
    "section-#{object.id}"
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
tramway-event-1.12.3.5 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.3.4 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.3.3 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.3.2 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.3.1 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.3 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.2 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.1.1 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.1 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12.0.1 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.12 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.11.5.1 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.11.5 app/decorators/tramway/event/section_feature_decorator.rb
tramway-event-1.11.4.1 app/decorators/tramway/event/section_feature_decorator.rb