Class: UploadKit::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UploadKit::Generators::InstallGenerator
- Defined in:
- lib/generators/upload_kit/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_css ⇒ Object
12 13 14 |
# File 'lib/generators/upload_kit/install/install_generator.rb', line 12 def add_css insert_into_file "app/assets/stylesheets/application.css", " *= require uploadkit\n", :after => "require_self\n" end |
#add_javascript ⇒ Object
7 8 9 10 |
# File 'lib/generators/upload_kit/install/install_generator.rb', line 7 def add_javascript insert_into_file "app/assets/javascripts/application.js","//= require externals/plupload/js/plupload.full\n", :before => "//= require_tree ." insert_into_file "app/assets/javascripts/application.js","//= require uploadkit\n", :before => "//= require_tree ." end |