aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-04-30 23:41:02 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-04-30 23:41:02 +0900
commitf4c0b6d1bf7a73b5e0600abbdbd5f6c668c10149 (patch)
tree14cd1e1ea7a5a255aed17297b15dfc3299087210
parent0c64f978efab714c21bfae80030953dbb653f08d (diff)
downloadaclog-f4c0b6d1bf7a73b5e0600abbdbd5f6c668c10149.tar.gz
web: ApplicationController: no longer have to tidy html
-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