mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
silence ar not found
This commit is contained in:
parent
a69451c75d
commit
f26fef4340
@ -294,7 +294,7 @@ class PostSerializer < BasicPostSerializer
|
|||||||
def post_custom_fields
|
def post_custom_fields
|
||||||
@post_custom_fields ||=
|
@post_custom_fields ||=
|
||||||
if @topic_view
|
if @topic_view
|
||||||
@topic_view.post_custom_fields && @topic_view.post_custom_fields[object.id]
|
(@topic_view.post_custom_fields && @topic_view.post_custom_fields[object.id]) || {}
|
||||||
else
|
else
|
||||||
object.custom_fields
|
object.custom_fields
|
||||||
end
|
end
|
||||||
|
@ -22,7 +22,10 @@ if Rails.env.production?
|
|||||||
|
|
||||||
# CSRF errors are not providing enough data
|
# CSRF errors are not providing enough data
|
||||||
# suppress unconditionally for now
|
# suppress unconditionally for now
|
||||||
/^Can't verify CSRF token authenticity$/
|
/^Can't verify CSRF token authenticity$/,
|
||||||
|
|
||||||
|
# 404s can be dealt with elsewise
|
||||||
|
/^ActiveRecord::RecordNotFound /
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user