diff options
Diffstat (limited to 'app/controllers/refinery/banners/admin/banners_controller.rb')
-rw-r--r-- | app/controllers/refinery/banners/admin/banners_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/refinery/banners/admin/banners_controller.rb b/app/controllers/refinery/banners/admin/banners_controller.rb index 1992bcf..759476a 100644 --- a/app/controllers/refinery/banners/admin/banners_controller.rb +++ b/app/controllers/refinery/banners/admin/banners_controller.rb @@ -6,6 +6,11 @@ module Refinery crudify :'refinery/banners/banner', :title_attribute => 'name', :xhr_paging => true + private + def banner_params + params.require(:banner).permit! + end + end end end |