method

javascripts

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: PluginBuilder
javascripts() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb, line 125
    def javascripts
      return if options.skip_javascript?

      if mountable?
        template "rails/javascripts.js",
                 "app/assets/javascripts/#{name}/application.js"
      elsif full?
        empty_directory_with_keep_file "app/assets/javascripts/#{name}"
      end
    end
Register or log in to add new notes.