menu item option

This commit is contained in:
Nweni
2017-04-20 19:11:08 +06:30
parent 3b89b0e903
commit d60ee09ff2
14 changed files with 198 additions and 125 deletions

View File

@@ -69,6 +69,6 @@ class Settings::MenusController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def settings_menu_params
params.fetch(:settings_menu, {})
params.require(:menu).permit(:name, :is_active, :valid_days, :valid_time_to, :valid_time_from)
end
end