Sha256: 1e85f8dfe5488dda8a21c5edcdb386a19349feddd1cdbcce7824ffcf18ab7da6

Contents?: true

Size: 217 Bytes

Versions: 2

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

class Tramway::News::NewsDecorator < ::Tramway::Core::ApplicationDecorator
  class << self
    def collections
      [:all]
    end
  end

  def lead
    object.body.first 200
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-news-1.0.4.3 app/decorators/tramway/news/news_decorator.rb
tramway-news-1.0.4.2 app/decorators/tramway/news/news_decorator.rb