app/presenters/decidim/debates/official_author_presenter.rb in decidim-debates-0.22.0 vs app/presenters/decidim/debates/official_author_presenter.rb in decidim-debates-0.23.0
- old
+ new
@@ -3,40 +3,12 @@
module Decidim
module Debates
#
# A dummy presenter to abstract out the author of an official debate.
#
- class OfficialAuthorPresenter
+ class OfficialAuthorPresenter < Decidim::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
-
- def can_be_contacted?
- false
- end
-
- def has_tooltip?
- false
end
end
end
end