Add rubocop exception for application controller class length and fix one line length issue

This commit is contained in:
luisramos0
2020-01-09 17:53:48 +00:00
parent 4658b7a533
commit 5fccd5fe58
2 changed files with 3 additions and 2 deletions

View File

@@ -93,7 +93,8 @@ class ApplicationController < ActionController::Base
if current_distributor_closed?
current_order.empty!
current_order.set_distribution! nil, nil
flash[:info] = "The hub you have selected is temporarily closed for orders. Please try again later."
flash[:info] = "The hub you have selected is temporarily closed for orders. "\
"Please try again later."
redirect_to main_app.root_url
end
end