Class: CriticalPathCss::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CriticalPathCss::InstallGenerator
- Defined in:
- lib/generators/critical_path_css/install_generator.rb
Instance Method Summary collapse
-
#copy_rake_task ⇒ Object
Copy the needed rake task for generating critical CSS.
Instance Method Details
#copy_rake_task ⇒ Object
Copy the needed rake task for generating critical CSS
8 9 10 11 |
# File 'lib/generators/critical_path_css/install_generator.rb', line 8 def copy_rake_task task_filename = 'critical_path_css.rake' copy_file "../../tasks/#{task_filename}", "lib/tasks/#{task_filename}" end |