Remove some obsolete code from ApplicationController::rescue_action_in_public
Prompted by http://rubyforge.org/pipermail/instiki-users/2009-April/001215.html
This commit is contained in:
parent
28a0043957
commit
f062dfe15a
|
@ -136,9 +136,6 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def rescue_action_in_public(exception)
|
def rescue_action_in_public(exception)
|
||||||
if exception.instance_of?(ActiveController::Session::CookieStore::TamperedWithCookie)
|
|
||||||
render :text => 'Stale session. Please reload the page.', :status =>500, :layout => 'error'
|
|
||||||
else
|
|
||||||
render :status => 500, :text => <<-EOL
|
render :status => 500, :text => <<-EOL
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"><body>
|
<html xmlns="http://www.w3.org/1999/xhtml"><body>
|
||||||
<h2>Internal Error</h2>
|
<h2>Internal Error</h2>
|
||||||
|
@ -147,7 +144,6 @@ class ApplicationController < ActionController::Base
|
||||||
</body></html>
|
</body></html>
|
||||||
EOL
|
EOL
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def return_to_last_remembered
|
def return_to_last_remembered
|
||||||
# Forget the redirect location
|
# Forget the redirect location
|
||||||
|
|
Loading…
Reference in a new issue