Skip to content

Commit

Permalink
make add_default_value private
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Jul 14, 2024
1 parent cd64cf3 commit da1101f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_hash/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da1101f

Please sign in to comment.