don't allow owner in params

This commit is contained in:
Brenda Wallace
2017-02-12 22:49:23 +13:00
committed by Shiny
parent 9ae35ca6eb
commit 2c871abd03

View File

@@ -87,7 +87,7 @@ class GardensController < ApplicationController
private
def garden_params
params.require(:garden).permit(:name, :slug, :owner_id, :description, :active,
params.require(:garden).permit(:name, :slug, :description, :active,
:location, :latitude, :longitude, :area, :area_unit)
end