rails/rails — pull request #3695 by tobiassvn (2011-11-19 13:15:57+00:00)
Title: Meaningful errors for unexpected partial arguments. Fixes #3573

GitHub issue #3573

I've wrapped the whole thing into an if block so it wont raise the error AND issue the deprecation warning, which would be confusing. This can obviously be refactored nicely once support for objects whose classes return a #model_name that responds to #partial_path will be dropped.