This is one of changes introduced in Ruby 2.0. Not sure if it is the best solution, but it works for me.
respond_to? now doesn't return protected methods.
This is one of changes introduced in Ruby 2.0.
Is your change compatible with ruby 1.8 and 1.9?
I did not tested it against older Rubies, but at least according to documentation, the additional parameter should work. I also seen similar changes in Rails 3.2 codebase in preparation for 3.2.13.