diff options
author | rhenium <re4k@re4k.info> | 2013-05-21 21:14:40 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-21 21:14:40 +0900 |
commit | 1de990f91ee62c5680a6d366f79c4edbca4a3a7e (patch) | |
tree | d84c6cf0825eadfccde38ef336ef5018aa96ac63 /app | |
parent | 856e759348f41418057b77a782a5b39eab87b999 (diff) | |
download | aclog-1de990f91ee62c5680a6d366f79c4edbca4a3a7e.tar.gz |
add option whether to enable notification
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/errors_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 2c9815e..5ea964d 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -45,7 +45,7 @@ class ErrorsController < ApplicationController private def force_format if request.format == :html - request.format = env["REQUEST_PATH"].scan(/\.([A-Za-z]+)$/).flatten.first || :html + request.format = (env["REQUEST_PATH"].scan(/\.([A-Za-z]+)$/).flatten.first || :html).to_sym end unless request.format == :html || request.format == :json |