adds map validations

This commit is contained in:
rgarcia
2017-12-19 20:32:55 +01:00
parent 94445d831a
commit 19a084c0c7
4 changed files with 36 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ module Budgets
def investment_params
params.require(:budget_investment)
.permit(:title, :description, :external_url, :heading_id, :tag_list,
:organization_name, :location, :terms_of_service,
:organization_name, :location, :terms_of_service, :skip_map,
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
map_location_attributes: [:latitude, :longitude, :zoom])