refinery/refinerycms — pull request #2033 by rgould (2012-11-17 04:04:30+00:00)
Title: Only load ApplicationHelper if it is defined

This addresses an issue that was brought up in 0f16e538, where integrating Refinery into an application that does not define `ApplicationHelper` results in a most confusing error.

Decided to go with the simplest solution and just use `helper ApplicationHelper if defined? ApplicationHelper`. We can go with a more complicated solution (described in the comments for that commit) if it proves to be necessary.

See discussion here: https://github.com/resolve/refinerycms/commit/0f16e538