mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 00:15:15 +08:00
Trivial: Was not finding files in public for errors due to missing extensions.
This commit is contained in:
parent
0f5ac91bbc
commit
6ce32b8bc4
|
@ -66,12 +66,12 @@ class ApplicationController < ActionController::Base
|
||||||
# for now do a simple remap, we may look at cleaner ways of doing the render
|
# for now do a simple remap, we may look at cleaner ways of doing the render
|
||||||
raise ActiveRecord::RecordNotFound
|
raise ActiveRecord::RecordNotFound
|
||||||
else
|
else
|
||||||
render file: 'public/404', layout: false, status: 404
|
render file: 'public/404.html', layout: false, status: 404
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue_from Discourse::InvalidAccess do
|
rescue_from Discourse::InvalidAccess do
|
||||||
render file: 'public/403', layout: false, status: 403
|
render file: 'public/403.html', layout: false, status: 403
|
||||||
end
|
end
|
||||||
|
|
||||||
def store_preloaded(key, json)
|
def store_preloaded(key, json)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user