Method: Js::Generators::AssetsGenerator#copy_javascript
- Defined in:
- lib/rails/generators/js/assets/assets_generator.rb
#copy_javascript ⇒ Object
8 9 10 |
# File 'lib/rails/generators/js/assets/assets_generator.rb', line 8 def copy_javascript copy_file "javascript.js", File.join('app/assets/javascripts', class_path, "#{file_name}.js") end |