Class: OnTheSpot::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_glue_javascriptObject



12
13
14
15
# File 'lib/generators/on_the_spot/install/install_generator.rb', line 12

def copy_glue_javascript
  copy_file "on_the_spot.js", "public/javascripts/on_the_spot.js"
  copy_file "on_the_spot.en.yml", "config/locales/on_the_spot.en.yml"
end

#download_jeditableObject



7
8
9
10
# File 'lib/generators/on_the_spot/install/install_generator.rb', line 7

def download_jeditable
  # Downloading latest jEditable
  get "http://www.appelsiini.net/download/jquery.jeditable.mini.js", "public/javascripts/jquery.jeditable.mini.js"
end