lib/zendesk_api/association.rb in zendesk_api-0.0.9 vs lib/zendesk_api/association.rb in zendesk_api-0.1.1

- old
+ new

@@ -237,12 +237,12 @@ end end end class << self - # Revert Rails' overwrite of const_missing - if method_defined?(:const_missing_without_dependencies) - alias :const_missing :const_missing_without_dependencies + # Make sure Rails' overwriting of const_missing doesn't cause trouble + def const_missing(*args) + Object.const_missing(*args) end # Allows using has and has_many without having class defined yet # Guesses at Resource, if it's anything else and the class is later # reopened under a different superclass, an error will be thrown