lib/thesilverspoon.rb~ in thesilverspoon-0.0.11 vs lib/thesilverspoon.rb~ in thesilverspoon-0.0.12
- old
+ new
@@ -300,12 +300,13 @@
template "#{Install.source_root}/layouts/welcome.html.erb", "app/views/layouts/welcome.html.erb"
end
def insert_devise_code
- prepend_to_file "config/application.rb",'require "devise"'
- inject_to_file "app/assets/stylesheets/application.css",'*=require_directory'
+ inject_into_file "config/application.rb",'require "devise"',:after=>"require File.expand_path('../boot', __FILE__)"
+ inject_into_file "app/assets/stylesheets/application.css",'*=require_directory',:before=>"*/"
append_to_file "app/assets/javascripts/application.js",'//= require bootstrap'
+
end
end