Check for ActionController before injecting code
Merge pull request #19 from itspriddle/refactor/as-on_load

Check for ActionController before injecting code