lib/zendesk_api/association.rb in zendesk_api-0.1.4 vs lib/zendesk_api/association.rb in zendesk_api-0.1.5

- old
+ new

@@ -229,10 +229,10 @@ return false if resource.nil? res = resource.to_s.modulize begin const_get(res) - rescue NameError + rescue NameError, ArgumentError # ruby raises NameError, rails raises ArgumentError ZendeskAPI.get_class(resource) end end end end