Method: FreeForm::Generators::InstallGenerator#copy_jquery_file
- Defined in:
- lib/generators/freeform/install_generator.rb
#copy_jquery_file ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/freeform/install_generator.rb', line 8 def copy_jquery_file if File.exists?('public/javascripts/prototype.js') copy_file 'prototype_freeform.js', 'public/javascripts/freeform.js' else copy_file 'jquery_freeform.js', 'public/javascripts/freeform.js' end end |