Class: Purecss::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Purecss::Generators::InstallGenerator
- Defined in:
- lib/purecss-rails/generators/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_purecss ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/purecss-rails/generators/install_generator.rb', line 10 def add_purecss verify_and_copy_correct_stylesheet(stylesheets_type) css_manifest = 'app/assets/stylesheets/application.css' if File.exist?(css_manifest) style_require_block = " *= require purecss\n" insert_into_file css_manifest, style_require_block, :after => "require_self\n" else copy_file "application.css", "app/assets/stylesheets/application.css" end end |