@ -22,4 +22,10 @@ class ApplicationRecord < ActiveRecord::Base
value
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