Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes

This commit is contained in:
phyusin
2018-03-21 11:53:38 +06:30
4 changed files with 20 additions and 11 deletions

View File

@@ -72,8 +72,11 @@ class Settings::MenusController < ApplicationController
end
def import
Menu.import(params[:file])
redirect_to settings_menus_path, notice: "imported"
if params[:file]
Menu.import(params[:file])
redirect_to settings_menus_path, notice: "Menu was successfully Imported"
end
end
private