AyuntamientoMadrid/participacion

View on GitHub
app/components/admin/budgets_wizard/groups/edit_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::BudgetsWizard::Groups::EditComponent < ApplicationComponent
  include Header
  attr_reader :group

  def initialize(group)
    @group = group
  end

  def budget
    group.budget
  end

  def title
    budget.name
  end

  private

    def form_path
      admin_budgets_wizard_budget_group_path(budget, group)
    end
end