Open pedrocarmona opened 2 months ago
maybe replace with?
if defined?(::Patron) && defined?(::Patron::Session)
@pedrocarmona thanks for explaining the issue.
I believe if defined?(::Patron::Session)
should be enough, there is no need to check for if defined?(::Patron) && defined?(::Patron::Session)
If an application has a table
patrons
and a model Patron, then it causes webmock not to work, because it checks if Patron is defined. Because Patron is defined, it fails withuninitialized constant Patron::Session