Skip to content

Commit

Permalink
use new #head method
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.techno-weenie.net/projects/plugins/exception_logger@2504 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information
technoweenie committed Nov 24, 2006
1 parent cf239a5 commit 30f4399
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/exception_loggable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ def local_request?
end

def render_404(exception)
respond_to do |type|
type.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" }
type.all { render :nothing => true, :status => "404 Not Found" }
respond_to do |format|
format.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => 400 }
format.all { head :status => 404 }
end
end

def render_500(exception)
respond_to do |type|
type.html { render :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error" }
type.all { render :nothing => true, :status => "500 Error" }
respond_to do |format|
format.html { render :file => "#{RAILS_ROOT}/public/500.html", :status => 500 }
format.all { head :status => 500 }
end
end

Expand Down

0 comments on commit 30f4399

Please sign in to comment.