Sha256: 83713017aff591497043c5cf1ef7f62aebb12631341ae9c1a640e9a553095124

Contents?: true

Size: 366 Bytes

Versions: 29

Compression:

Stored size: 366 Bytes

Contents

require 'rails/generators'

module Autocomplete
  class InstallGenerator < Rails::Generators::Base
    def install
      # Copy the unobtrusive JS file
      copy_file('autocomplete-rails.js', 'public/javascripts/autocomplete-rails.js')
    end

    def self.source_root
      File.join(File.dirname(__FILE__), '..', '..', 'assets', 'javascripts')
    end
  end
end

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
rails3-jquery-autocomplete-1.0.8 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.7 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.6 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.5 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.4 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.3 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.2 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.1 lib/generators/autocomplete/install_generator.rb
rails3-jquery-autocomplete-1.0.0 lib/generators/autocomplete/install_generator.rb