Skip to content

Commit

Permalink
adding backbone requires before require tree statment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Fitzgerald committed May 25, 2011
1 parent 8b24b9c commit 73d389d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/generators/backbone/install/install_generator.rb
Expand Up @@ -8,8 +8,8 @@ class InstallGenerator < Rails::Generators::Base
:desc => "Skip Git ignores and keeps"

def inject_backbone
inject_into_file "app/assets/javascripts/application.js", :after => "//= require jquery_ujs" do
"\n//= require underscore\n//= require backbone\n//= require backbone_rails_sync"
inject_into_file "app/assets/javascripts/application.js", :before => "//= require_tree" do
"//= require underscore\n//= require backbone\n//= require backbone_rails_sync\n"
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/dummy/app/assets/javascripts/application.js
Expand Up @@ -3,8 +3,8 @@
//
//= require jquery
//= require jquery_ujs
//= require hello
//= require underscore
//= require backbone
//= require backbone_rails_sync
//= require hello
//= require_tree .

0 comments on commit 73d389d

Please sign in to comment.