Sha256: 1f84171994947db6804f8a05a68f21f6f9e8d012f552420a801bffc4827075f5
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module Decidim module DummyResources 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-dev-0.28.0.rc4 | app/presenters/decidim/dummy_resources/official_author_presenter.rb |