Add budget investements images specs

This commit is contained in:
Senén Rodero Rodríguez
2017-06-15 09:42:45 +02:00
parent c399692109
commit 673fc66011
9 changed files with 58 additions and 16 deletions

View File

@@ -105,9 +105,11 @@ module Budgets
end
def investment_params
params.require(:budget_investment).permit(:title, :description, :external_url, :heading_id, :tag_list,
:organization_name, :location, :terms_of_service, :image,
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id])
params.require(:budget_investment)
.permit(:title, :description, :external_url, :heading_id,
:tag_list, :organization_name, :location, :terms_of_service,
:image, :image_description,
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id])
end
def load_ballot