jwhitley/requirejs-rails — pull request #107 by treppo (2013-03-02 17:50:05+00:00)
Title: Refactoring Helper

I refactored the helper while going through the code and trying to understand what was going on.
The complexity was slightly getting out of hand, so I extracted a lot of operations into their own methods and updated method names to better understand what is going on and moved one method out of the module.
I enjoyed doing it and hope that it comes handy for everyone reading and updating the code.
Btw. Codeclimate likes it too:
compare https://codeclimate.com/github/jwhitley/requirejs-rails/RequirejsHelper
with https://codeclimate.com/github/treppo/requirejs-rails/RequirejsHelper