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:
parent
4ee3a8f4de
commit
3d91649654
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue