aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-07-14 13:26:45 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-14 13:26:45 +0900
commit12e6cba9cf5d2e29438751e0922b27d75da8b0c6 (patch)
tree57ae37a948512f0d5486d1a5ab1beeae0799ee29 /activemodel/test/cases/attribute_methods_test.rb
parent2992faa45b1b3842e1df30384bba496bb315d09d (diff)
downloadrails-12e6cba9cf5d2e29438751e0922b27d75da8b0c6.tar.gz
rails-12e6cba9cf5d2e29438751e0922b27d75da8b0c6.tar.bz2
rails-12e6cba9cf5d2e29438751e0922b27d75da8b0c6.zip
Make `generated_attribute_methods` to private
Because `generated_attribute_methods` is an internal API.
Diffstat (limited to 'activemodel/test/cases/attribute_methods_test.rb')
-rw-r--r--activemodel/test/cases/attribute_methods_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/attribute_methods_test.rb b/activemodel/test/cases/attribute_methods_test.rb
index 4767accb7c..ab46bdf489 100644
--- a/activemodel/test/cases/attribute_methods_test.rb
+++ b/activemodel/test/cases/attribute_methods_test.rb
@@ -116,7 +116,7 @@ class AttributeMethodsTest < ActiveModel::TestCase
test "#define_attribute_method does not generate attribute method if already defined in attribute module" do
klass = Class.new(ModelWithAttributes)
- klass.generated_attribute_methods.module_eval do
+ klass.send(:generated_attribute_methods).module_eval do
def foo
"<3"
end