Class: Decidim::Lausanne::Budgets::AdminLog::BudgetPresenter
- Inherits:
-
Decidim::Log::BasePresenter
- Object
- Decidim::Log::BasePresenter
- Decidim::Lausanne::Budgets::AdminLog::BudgetPresenter
- Defined in:
- app/presenters/decidim/lausanne/budgets/admin_log/budget_presenter.rb
Overview
This class holds the logic to present a ‘Decidim::Lausanne::Budgets::LausanneBudget` for the `AdminLog` log.
Usage should be automatic and you shouldn’t need to call this class directly, but here’s an example:
action_log = Decidim::ActionLog.last
view_helpers # => this comes from the views
BudgetPresenter.new(action_log, view_helpers).present