rails/rails — pull request #5525 by kennyj (2012-03-20 17:18:22+00:00)
Title: Fix GH #5411. When precompiling, we miss *params*.

If we execute precompile, we miss *params* method.

But ruby can't judge that *params* is local variable or method. Thus we should use NameError.
BTW: NoMethodError's superclass is NameError.

Please see https://github.com/rails/rails/issues/5411