Class: Decidim::Proposals::AdminLog::ValueTypes::ProposalStatePresenter

Inherits:
Log::ValueTypes::DefaultPresenter show all
Defined in:
decidim-proposals/app/presenters/decidim/proposals/admin_log/value_types/proposal_state_presenter.rb

Instance Method Summary collapse

Methods inherited from Log::ValueTypes::DefaultPresenter

#initialize

Constructor Details

This class inherits a constructor from Decidim::Log::ValueTypes::DefaultPresenter

Instance Method Details

#presentObject


8
9
10
11
12
# File 'decidim-proposals/app/presenters/decidim/proposals/admin_log/value_types/proposal_state_presenter.rb', line 8

def present
  return unless value

  h.t(value, scope: "decidim.proposals.admin.proposal_answers.edit", default: value)
end