1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Constant look-up would no longer fall back to top-level constant since ruby 2.5

See: 44a2576f79
9df88e9cae
This commit is contained in:
Akira Matsuda 2017-01-13 16:38:30 +09:00
parent 4ee3a8f4de
commit 3d91649654

View file

@ -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