Merge branch 'master' into aperez-dates-for-milestones

This commit is contained in:
Alberto García
2017-12-14 20:50:55 +01:00
committed by GitHub
10 changed files with 51 additions and 3 deletions

View File

@@ -44,7 +44,8 @@ class Admin::BudgetInvestmentMilestonesController < Admin::BaseController
def milestone_params
params.require(:budget_investment_milestone)
.permit(:title, :description, :publication_date, :budget_investment_id,
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]),
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy])
end
def load_budget_investment