Commit 112ef4500d9a0886c4683d8d193398dfe8289700
1 parent
96da7103
Exists in
master
and in
29 other branches
ActionItem953: don't render blocks on 404 error
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/application.rb
@@ -101,6 +101,7 @@ class ApplicationController < ActionController::Base | @@ -101,6 +101,7 @@ class ApplicationController < ActionController::Base | ||
101 | end | 101 | end |
102 | 102 | ||
103 | def render_not_found(path = nil) | 103 | def render_not_found(path = nil) |
104 | + @no_design_blocks = true | ||
104 | @path ||= request.path | 105 | @path ||= request.path |
105 | render :template => 'shared/not_found.rhtml', :status => 404 | 106 | render :template => 'shared/not_found.rhtml', :status => 404 |
106 | end | 107 | end |