Class: UploadKit::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/upload_kit/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_cssObject



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_javascriptObject



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