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

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

Instance Method Summary collapse

Instance Method Details

#presentObject



8
9
10
11
12
# File '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