You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some parts of the code guard against undefined Rails module,
but some parts do that in unsafe manner.
Good example: `defined?(Rails.env) && Rails.env`
Bad example: `defined?(Rails) && Rails.env`
There are gems, that define `module Rails` to extend it, but then it is
incomplete and causes failures.
This change unifies accessing Rails module with proper `defines?`
guarding against incomplete definition of the Rails module.
0 commit comments