From 806d1ea578a412da18a20b2e0ff96d92b76535ce Mon Sep 17 00:00:00 2001 From: Gabyshev Semyen Date: Sun, 24 Jan 2016 14:59:26 +0600 Subject: [PATCH] permit :position attribute for Refinery::Portfolio::Item --- app/controllers/refinery/portfolio/admin/items_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/refinery/portfolio/admin/items_controller.rb b/app/controllers/refinery/portfolio/admin/items_controller.rb index 816d4ed..f1c59f3 100644 --- a/app/controllers/refinery/portfolio/admin/items_controller.rb +++ b/app/controllers/refinery/portfolio/admin/items_controller.rb @@ -31,7 +31,7 @@ def find_gallery private def item_params - params.require(:item).permit(:title, :caption, :image_id, :gallery_id) + params.require(:item).permit(:title, :caption, :image_id, :gallery_id, :position) end end