Update pjax.rb

* Consider protected and private methods when checking if there is a controller_layout method in the current class. Fixes a problem with Ruby 2.0.