I usually do the following:
cd `bundle show rails`
cd ..
grep -ir escape_javascript *
> actionview-4.1.6/lib/action_view/helpers/javascript_helper.rb: def escape_javascript(javascript)
> actionview-4.1.6/lib/action_view/helpers/javascript_helper.rb: alias_method :j, :escape_javascript
EDIT : answer below jrochkind is the correct answer; my answer is incorrect as it scans all the gems installed in the system.
source
share