vendor/bundle/ruby/2.1.0/gems/mousetrap-rails-1.4.6/lib/generators/mousetrap/install/install_generator.rb
def add_javascript_assets
        if File.exist?('app/assets/javascripts/application.js')
          insert_into_file "app/assets/javascripts/application.js", "//= require mousetrap\n", :after => "jquery_ujs\n"
        else
          copy_file "application.js", "app/assets/javascripts/application.js"
        end
      end
# Inject mousetrap scripts to manifest file `application.js`
Inject mousetrap scripts to manifest file `application.js`
Inject mousetrap scripts to manifest file ` application . js `
def add_javascript_assets
        if File.exist?('app/assets/javascripts/application.js')
          insert_into_file "app/assets/javascripts/application.js", "//= require mousetrap\n", :after => "jquery_ujs\n"
        else
          copy_file "application.js", "app/assets/javascripts/application.js"
        end
      end
def add_javascript_assets if File . exist? ( 'app/assets/javascripts/application.js' ) insert_into_file "app/assets/javascripts/application.js" , "//= require mousetrap\n" , :after => "jquery_ujs\n" else copy_file "application.js" , "app/assets/javascripts/application.js" end end
Inject mousetrap scripts to manifest file `application.js`
Inject mousetrap scripts to manifest file ` application . js `