rails/rails — pull request #16505 by sgrif (2014-08-14 18:45:04+00:00)
Title: Use the method for determining attribute methods rather than duplicating

I've been trying to reduce the number of places that care about
`attributes`, and its existence. We have a method for this check, let's
use it instead.