'local_const_defined? is deprecated in Rails 4