From da1101f5ed2b4a27b5b720190495718544de844b Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Sun, 7 Jul 2024 21:31:13 -0400 Subject: [PATCH] make add_default_value private --- lib/active_hash/base.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/active_hash/base.rb b/lib/active_hash/base.rb index 901cdb7..d1b9947 100644 --- a/lib/active_hash/base.rb +++ b/lib/active_hash/base.rb @@ -266,6 +266,8 @@ def add_default_value field_name, default_value self.default_attributes[field_name] = default_value end + private :add_default_value + def define_getter_method(field, default_value) unless instance_methods.include?(field) define_method(field) do