Files
grecia/app/components/admin/budgets_wizard/phases/edit_component.rb
Javi Martín d18c627392 Add and apply Layout/EmptyLinesAfterModuleInclusion rule
This rule was added in rubocop 1.79. We were inconsistent about it, so
we're adding it to get more consistency.
2025-11-05 14:27:12 +01:00

24 lines
382 B
Ruby

class Admin::BudgetsWizard::Phases::EditComponent < ApplicationComponent
include Header
attr_reader :phase
def initialize(phase)
@phase = phase
end
def budget
phase.budget
end
def title
"#{t("admin.budget_phases.edit.title")} - #{phase.name}"
end
private
def form_path
admin_budgets_wizard_budget_budget_phases_path(budget)
end
end