Skip to content

Commit f6d1267

Browse files
committed
Mark generate_alias_attribute_methods, alias_attribute_method_definition as private API
1 parent e5cd491 commit f6d1267

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activemodel/lib/active_model/attribute_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def eagerly_generate_alias_attribute_methods(new_name, old_name) # :nodoc:
214214
end
215215
end
216216

217-
def generate_alias_attribute_methods(code_generator, new_name, old_name)
217+
def generate_alias_attribute_methods(code_generator, new_name, old_name) # :nodoc:
218218
ActiveSupport::CodeGenerator.batch(code_generator, __FILE__, __LINE__) do |owner|
219219
attribute_method_patterns.each do |pattern|
220220
alias_attribute_method_definition(code_generator, pattern, new_name, old_name)

activerecord/lib/active_record/attribute_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def generate_alias_attribute_methods(code_generator, new_name, old_name) # :nodo
8484
attribute_method_patterns_cache.clear
8585
end
8686

87-
def alias_attribute_method_definition(code_generator, pattern, new_name, old_name)
87+
def alias_attribute_method_definition(code_generator, pattern, new_name, old_name) # :nodoc:
8888
old_name = old_name.to_s
8989

9090
if !abstract_class? && !has_attribute?(old_name)

0 commit comments

Comments
 (0)