method

javascripts

Importance_0
v3.1.0 - 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 117
    def javascripts
      return if options.skip_javascript?

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