Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-05 15:29:22 +0300
committerShinya Maeda <shinya@gitlab.com>2017-10-05 15:29:22 +0300
commitfe135fac68fab5e2a15e7aaa250ae91cd7fa4851 (patch)
tree576f7033950cb887b5c9013854a862bb12ae7485 /app/controllers
parentb229637b0837065a9993d06573b41218ab7e9dfb (diff)
authorizations_controller_spec. cluster_policy_spec.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/google_api/authorizations_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/google_api/authorizations_controller.rb b/app/controllers/google_api/authorizations_controller.rb
index 890b4ce60c8..79f49d598af 100644
--- a/app/controllers/google_api/authorizations_controller.rb
+++ b/app/controllers/google_api/authorizations_controller.rb
@@ -9,10 +9,10 @@ module GoogleApi
session[GoogleApi::CloudPlatform::Client.session_key_for_expires_at] =
expires_at.to_s
- if params[:state]
+ if params[:state].present?
redirect_to params[:state]
else
- redirect_to root_url
+ redirect_to root_path
end
end
end