Closed sonicdes closed 1 year ago
The code in the condition always evaluates to true, because
if defined? Rails && defined? ActiveRecord
is equivalent to
if defined?(Rails && defined? ActiveRecord)
which is always true, because the code inside parentheses is an expression. This results in the file getting required anyway.
expression
The code in the condition always evaluates to true, because
is equivalent to
which is always true, because the code inside parentheses is an
expression
. This results in the file getting required anyway.