I'm on OSX w/ ruby 1.8.7 and this change seems to produce:
 FATAL: ArgumentError: wrong number of arguments (2 for 1)

 42>>         if Resource.const_defined?(class_name, false)