jcasimir/draper — pull request #288 by cheald (2012-10-01 21:31:45+00:00)
Title: Fixes for Draper when used outside of a template

... used to create a new view context on demand if needed by draper outside of a template context. Fixes #287. Split out the system initialization into action_controller and action_mailer pieces for clarity. Guarded the view context lazy initialization to only attempt to create a test context if the proper test classes exist (as they won't outside of test mode).