mileszs/wicked_pdf — pull request #123 by alg (2012-07-19 12:06:16+00:00)
Title: Fixes #114 "undefined method render for module"

Just a quick fix for the #114. Some gems make Rails (3.2.2 and 3.2.6 in my case) pass a synthetic Module into the `included` call, and it fails as there are certainly no `render` and `render_to_string` methods in them. Here we check if that's an instance of `ActionController::Base` and work only on it.

Cheers.