Sha256: 0a36f7ae6877928e8d02970f8856b3a19903a6943211a6f8b245390e561a28b8

Contents?: true

Size: 263 Bytes

Versions: 90

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module Decidim
  #
  # Decorator for categories
  #
  class CategoryPresenter < SimpleDelegator
    include Decidim::TranslationsHelper

    def translated_name
      @translated_name ||= translated_attribute name
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-core-0.26.8 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.4 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.3 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.7 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.5 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.2 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.1 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.4 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.0 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.3 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.0.rc2 app/presenters/decidim/category_presenter.rb
decidim-core-0.27.0.rc1 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.2 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.1 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.0 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.0.rc2 app/presenters/decidim/category_presenter.rb
decidim-core-0.26.0.rc1 app/presenters/decidim/category_presenter.rb
decidim-core-0.25.2 app/presenters/decidim/category_presenter.rb
decidim-core-0.25.1 app/presenters/decidim/category_presenter.rb
decidim-core-0.25.0 app/presenters/decidim/category_presenter.rb