Permalink
Browse files

more liberal regex for generating into application.js

  • Loading branch information...
1 parent 23f2d9a commit 574ffabe641816feee75389463fe896a0ecd5e4c @jrochkind jrochkind committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/blacklight_range_limit/assets_generator.rb
@@ -25,7 +25,7 @@ def assets
}
end
- insert_into_file "app/assets/javascripts/application.js", :after => "//= require jquery\n" do
+ insert_into_file "app/assets/javascripts/application.js", :after => %r{//= +require +['"]?jquery['"]? *\n} do
%q{
// For blacklight_range_limit built-in JS, if you don't want it you don't need

0 comments on commit 574ffab

Please sign in to comment.