# Remove string values that aren't constants or subclasses of AR
@class_names.delete_if{|k,klass|
unlessklass.is_a?Class
klass=klass.safe_constantize
ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name will be removed in Rails 4.2, consider using the class itself instead.")