Rails does not support const_defined? in development mode

Use const_get instead, and rescue NameError