graphql-client/lib
John Hawthorn 570ef532eb Use safe_constantize instead of rescuing
The rescue that was here previously can be over-eager in capturing
exceptions, and could mask error that weren't specifically that
const_name didn't exist but could be any NameError that happened eager
loading that class or that class's dependencies.

For this reason ActiveSupport provides safe_constantize which returns
nil only if the NameError comes from the constant we are requesting, and
raises the exception otherwise.
2020-02-18 09:54:45 -08:00
..
graphql Use safe_constantize instead of rescuing 2020-02-18 09:54:45 -08:00
rubocop/cop/graphql Support rubocop 0.53 2018-03-15 10:59:08 -04:00