Class: Uploadify::Rails::CallbackGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/uploadify-rails/callback_generator.rb

Constant Summary collapse

COFFEESCRIPT_FILE =
'uploadify-rails.js.coffee'

Instance Method Summary collapse

Instance Method Details

#create_coffeescript_fileObject



10
11
12
13
14
# File 'lib/uploadify-rails/callback_generator.rb', line 10

def create_coffeescript_file
  puts "Creating coffeescript file..."
  copy_file COFFEESCRIPT_FILE, ::Rails.application.config.root + 'app' + 'assets' + 'javascripts' + COFFEESCRIPT_FILE
  puts "Done!"
end