Sha256: 7f49a87d8295bda79fa2de0668c8b3f6fb0f4540265a156571ce19d8b9cd6993

Contents?: true

Size: 577 Bytes

Versions: 20

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    #
    # A dummy presenter to abstract out the author of an official debate.
    #
    class OfficialAuthorPresenter
      def name
        I18n.t("decidim.debates.models.debate.fields.official_debate")
      end

      def nickname
        ""
      end

      def badge
        ""
      end

      def profile_path
        ""
      end

      def avatar_url
        ActionController::Base.helpers.asset_path("decidim/default-avatar.svg")
      end

      def deleted?
        false
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-debates-0.14.4 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.14.3 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.14.2 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.14.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.13.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.12.2 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.13.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.12.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.13.0.pre1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.12.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.11.2 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.12.0.pre app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.11.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.11.0.pre1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.10.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.10.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.9.3 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.9.2 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.9.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.9.0 app/presenters/decidim/debates/official_author_presenter.rb