railsbp/rails_best_practices — pull request #128 by compactcode (2012-08-14 01:48:11+00:00)
Title: Mark action_controller layout methods as used.

ActionController defines a class method [layout](http://ap.rubyonrails.org/classes/ActionController/Layout/ClassMethods.html) that can accept a method delegate as an argument. Rails best practices incorrectly reports this delegate method as being unused.

This code adds a check to see if the layout method has been given a method delegate and if so, marks that method as used.