diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-13 16:38:30 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-13 16:38:30 +0900 |
commit | 3d91649654ff5570d0cf26f96ec9f82f31fe32f6 (patch) | |
tree | f2614763daa0cc6114d2b0ef5ad07cdb3a81c20f /activesupport | |
parent | 4ee3a8f4de380867d5a436b586f2252bce7e29ff (diff) | |
download | rails-3d91649654ff5570d0cf26f96ec9f82f31fe32f6.tar.gz rails-3d91649654ff5570d0cf26f96ec9f82f31fe32f6.tar.bz2 rails-3d91649654ff5570d0cf26f96ec9f82f31fe32f6.zip |
Constant look-up would no longer fall back to top-level constant since ruby 2.5
See: https://github.com/ruby/ruby/commit/44a2576f798b07139adde2d279e48fdbe71a0148
https://github.com/ruby/ruby/commit/9df88e9cae57aa421230f14500e88f33f127414f
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index f89cb338ba..5906e5d3d2 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -35,10 +35,10 @@ Someone = Struct.new(:name, :place) do "some_table" end - FAILED_DELEGATE_LINE = __LINE__ + 1 + self::FAILED_DELEGATE_LINE = __LINE__ + 1 delegate :foo, to: :place - FAILED_DELEGATE_LINE_2 = __LINE__ + 1 + self::FAILED_DELEGATE_LINE_2 = __LINE__ + 1 delegate :bar, to: :place, allow_nil: true private |