Sha256: 7f60668c512448c4315adab79c6aa5bdc1cd4da87683fd0024498119ae23262a

Contents?: true

Size: 611 Bytes

Versions: 12

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Dev
    class OfficialAuthorPresenter
      def name
        self.class.name
      end

      def nickname
        Decidim::UserBaseEntity.nicknamize(name)
      end

      def deleted?
        false
      end

      def respond_to_missing?(*)
        true
      end

      def method_missing(method, *args)
        if method.to_s.ends_with?("?")
          false
        elsif [:avatar_url, :profile_path, :badge, :followers_count, :cache_key_with_version].include?(method)
          ""
        else
          super
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-dev-0.29.1 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.4 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.29.0 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.3 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.29.0.rc4 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.29.0.rc3 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.29.0.rc2 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.29.0.rc1 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.2 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.1 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.0 app/presenters/decidim/dev/official_author_presenter.rb
decidim-dev-0.28.0.rc5 app/presenters/decidim/dev/official_author_presenter.rb