rails 4.2.0
fix exists? deprecation warnings