Skip to content

Commit

Permalink
Rename to generated_attribute_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Dec 5, 2023
1 parent b526d63 commit 24fbc1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ def decorate

root.create_path(constant) do |current_attributes|
current_attributes_methods_name = "GeneratedAttributeMethods"
current_attributes.create_module(current_attributes_methods_name) do |mod|
current_attributes.create_module(current_attributes_methods_name) do |generated_attribute_methods|
dynamic_methods.each do |method|
method = method.to_s
# We want to generate each method both on the class
generate_method(current_attributes, method, class_method: true)
# and on the instance
generate_method(mod, method, class_method: false)
generate_method(generated_attribute_methods, method, class_method: false)
end

instance_methods.each do |method|
Expand Down

0 comments on commit 24fbc1e

Please sign in to comment.