mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
811fd0a6b4
The constant reference A::B used to trigger autoloading causes a warning to be logged about the possible use of :: in a void context so assign it to the _ variable to prevent the warnings from being triggered.
4 lines
153 B
Ruby
4 lines
153 B
Ruby
RaisesArbitraryException = 1
|
|
_ = A::B # Autoloading recursion, also expected to be watched and discarded.
|
|
|
|
raise Exception, 'arbitray exception message'
|