Closed KrauseFx closed 4 years ago
This is a great catch — thank you @KrauseFx. I should know better than to rescue nil
like that, and I will address that in a separate PR.
@sandeepnagra Tests pass with this change. Please can you confirm you're happy with it?
Nice catch! Looks good to me.
.constantize
is a method defined in ActiveRecord (https://apidock.com/rails/String/constantize) and not available for plain Ruby projects.Replacing this line with
Object.const_get
will fix it, and will allow us to run in all environments.