Sha256: 1dd24440f87d9da15a9c3566f0ac8481d24811b90c6e448fd8daa4e814d19ade
Contents?: true
Size: 769 Bytes
Versions: 6
Compression:
Stored size: 769 Bytes
Contents
require 'generators/jquery' module Jquery module Generators class InstallGenerator < Rails::Generators::Base extend TemplatePath def copy_initializer_files template "config/initializers/jquery.rb.tt", "config/initializers/jquery.rb" end def download_jquery_files %w(controls.js dragdrop.js effects.js prototype.js rails.js).each do |prototype| remove_file "public/javascripts/#{prototype}" end # Downloading latest jQuery.min get "http://code.jquery.com/jquery-latest.min.js", "public/javascripts/jquery.js" # Downloading latest jQuery drivers get "http://github.com/rails/jquery-ujs/raw/master/src/rails.js", "public/javascripts/rails.js" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems