rails/rails — pull request #6630 by route (2012-06-05 07:16:34+00:00)
Title: Metal controller doesn't have logger method, check it and then delegate

When I use Metal controller and my template contains some errors, I'm getting `undefined method `logger' for` because Metal controller doesn't contain logger method. When error is raised in my template, this line https://github.com/rails/rails/blob/master/actionpack/lib/action_view/template.rb#L297 trying to check logger but checking pass because this method have already been delegated.