aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/devise.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r--config/initializers/devise.rb42
1 files changed, 21 insertions, 21 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index 37e7c1d1f..ef5c89fbf 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -243,24 +243,24 @@ Devise.setup do |config|
# end
end
-class Devise::FailureApp
- def return_to_root_path?
- root_path == session["#{scope}_return_to"]
- end
- def redirect
- store_location!
- if flash[:timedout] && flash[:alert]
- flash.keep(:timedout)
- flash.keep(:alert)
- else
- Rails.logger.debug "A" * 30
- Rails.logger.debug i18n_message
- Rails.logger.debug redirect_url
- Rails.logger.debug scope
- Rails.logger.debug root_path
- Rails.logger.debug session["#{scope}_return_to"]
- flash[:alert] = i18n_message unless return_to_root_path?
- end
- redirect_to redirect_url
- end
-end
+# class Devise::FailureApp
+# def return_to_root_path?
+# root_path == session["#{scope}_return_to"]
+# end
+# def redirect
+# store_location!
+# if flash[:timedout] && flash[:alert]
+# flash.keep(:timedout)
+# flash.keep(:alert)
+# else
+# Rails.logger.debug "A" * 30
+# Rails.logger.debug i18n_message
+# Rails.logger.debug redirect_url
+# Rails.logger.debug scope
+# Rails.logger.debug root_path
+# Rails.logger.debug session["#{scope}_return_to"]
+# flash[:alert] = i18n_message unless return_to_root_path?
+# end
+# redirect_to redirect_url
+# end
+# end