Simplify render in controllers (#2144)
This commit is contained in:
@ -18,7 +18,7 @@ class Settings::ImportsController < ApplicationController
|
||||
ImportWorker.perform_async(@import.id)
|
||||
redirect_to settings_import_path, notice: I18n.t('imports.success')
|
||||
else
|
||||
render action: :show
|
||||
render :show
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user