lib/recurly/resource.rb in recurly-2.18.21 vs lib/recurly/resource.rb in recurly-2.18.22

- old
+ new

@@ -606,10 +606,10 @@ end end def find_resource_class(name) resource_name = Helper.classify(name) - if Recurly.const_defined?(resource_name, false) + if Recurly.const_defined?(resource_name, false) && Recurly.const_get(resource_name, false).instance_of?(Class) Recurly.const_get(resource_name, false) end end end