Class: Cssbt::TwbsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cssbt::TwbsGenerator
- Defined in:
- lib/generators/cssbt/twbs/twbs_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy ⇒ Object
13 14 15 16 |
# File 'lib/generators/cssbt/twbs/twbs_generator.rb', line 13 def copy copy_file "bootstrap.css", "app/assets/stylesheets/bootstrap.css" copy_file "bootstrap.js", "app/assets/javascripts/bootstrap.js" end |
#insert ⇒ Object
8 9 10 11 |
# File 'lib/generators/cssbt/twbs/twbs_generator.rb', line 8 def insert insert_into_file "app/assets/stylesheets/application.css", "*= require bootstrap\n", :after => "*= require_self\n" insert_into_file "app/assets/javascripts/application.js", "//= require bootstrap\n", :after => "//= require jquery\n" end |