diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-27 22:20:38 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-11-27 22:20:52 +0900 |
commit | 32225387c1e714f742b07fdf7121a2a0bc523c62 (patch) | |
tree | e90ba10e9d0a2596c3b5282ba2ffaa6ba09051bf /activesupport/test | |
parent | 5921043f9e51dfe0750c13f1ca58d3c912e729c7 (diff) | |
download | rails-32225387c1e714f742b07fdf7121a2a0bc523c62.tar.gz rails-32225387c1e714f742b07fdf7121a2a0bc523c62.tar.bz2 rails-32225387c1e714f742b07fdf7121a2a0bc523c62.zip |
use public Module#include instead of send :include
Follow up to #18767
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/concern_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/concern_test.rb b/activesupport/test/concern_test.rb index 95507c815d..7a5a5414a7 100644 --- a/activesupport/test/concern_test.rb +++ b/activesupport/test/concern_test.rb @@ -76,7 +76,7 @@ class ConcernTest < ActiveSupport::TestCase end def test_class_methods_are_extended_only_on_expected_objects - ::Object.__send__(:include, Qux) + ::Object.include(Qux) Object.extend(Qux::ClassMethods) # module needs to be created after Qux is included in Object or bug won't # be triggered |