aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 1718bfa..7700a2c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -4,7 +4,6 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
- after_action :tidy_response_body
helper_method :logged_in?, :current_user
helper_method :authorized_to_show_user?
@@ -21,8 +20,6 @@ class ApplicationController < ActionController::Base
@_current_user ||= begin
if logged_in?
User.find(session[:user_id])
- else
- nil
end
end
end
@@ -42,11 +39,4 @@ class ApplicationController < ActionController::Base
end
object
end
-
- private
- def tidy_response_body
- if [:html, :xml, :atom].any? {|s| request.format == s }
- response.body = ActiveSupport::Multibyte::Unicode.tidy_bytes(response.body)
- end
- end
end