Add main link to each phase of the budget
Co-authored-by: decabeza <alberto@decabeza.es>
This commit is contained in:
@@ -31,7 +31,8 @@ module Admin::BudgetPhasesActions
|
||||
end
|
||||
|
||||
def budget_phase_params
|
||||
valid_attributes = [:starts_at, :ends_at, :enabled, image_attributes: image_attributes]
|
||||
valid_attributes = [:starts_at, :ends_at, :enabled, :main_link_url,
|
||||
image_attributes: image_attributes]
|
||||
params.require(:budget_phase).permit(*valid_attributes, translation_params(Budget::Phase))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user