method

copy_javascript

rails latest stable - Class: Js::Generators::AssetsGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

copy_javascript()
public

No documentation available.

# File railties/lib/rails/generators/js/assets/assets_generator.rb, line 10
      def copy_javascript
        copy_file "javascript.js", File.join("app/assets/javascripts", class_path, "#{file_name}.js")
      end