9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/generators/bootstrap/install/install_generator.rb', line 9
def add_assets
if File.exist?('app/assets/javascripts/application.js')
insert_into_file "app/assets/javascripts/application.js", "//= require twitter/bootstrap\n", :after => "jquery_ujs\n"
else
copy_file "application.js", "app/assets/javascripts/application.js"
end
if File.exist?('app/assets/stylesheets/application.css')
insert_into_file "app/assets/stylesheets/application.css", " *= require twitter/bootstrap\n", :after => "require_self\n"
else
copy_file "application.css", "app/assets/stylesheets/application.css"
end
end
|