Skip to content

Instantly share code, notes, and snippets.

diff --git a/activerecord_base_without_table/lib/active_record/base_without_table.rb b/activerecord_base_without_table/lib/active_record/base_without_table.rb
index da6cdc8..429d121 100644
--- a/activerecord_base_without_table/lib/active_record/base_without_table.rb
+++ b/activerecord_base_without_table/lib/active_record/base_without_table.rb
@@ -6,6 +6,9 @@ module ActiveRecord
errors.empty?
end
+ # Prevent AR from associating to this record by ID; we should be serialized instead.
+ private :quoted_id