Prevent accidental serialization of Account and User records (#30079)

This commit is contained in:
Claire authored and GitHub committed 2024-04-29 09:45:58 +00:00
1 parent e336466894
commit 95e9de5777
1 file changed
+6
+6
View File
@@ -22,4 +22,10 @@ class ApplicationRecord < ActiveRecord::Base
value
end
end
# Prevent implicit serialization in ActiveModel::Serializer or other code paths.
# This is a hardening step to avoid accidental leaking of attributes.
def as_json
raise NotImplementedError
end
end