Class: Uploadify::Rails::CallbackGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Uploadify::Rails::CallbackGenerator
- 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_file ⇒ Object
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 |