Sha256: 8f4cff14b70ecdd4d44c5a44295d1e33d5f72898cc87af7b75e82d636a87786f

Contents?: true

Size: 304 Bytes

Versions: 34

Compression:

Stored size: 304 Bytes

Contents

require 'rails/generators'

class AutocompleteGenerator < 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__), 'templates')
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
rails3-jquery-autocomplete-0.7.5 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.7.4 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.7.3 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.7.2 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.7.1 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.7.0 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.6 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.5 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.4 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.3 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.2 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.1 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.6.0 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.5.1 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.5.0 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.4.0 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-moc-0.3.3 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.3.6 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.3.5 lib/generators/autocomplete_generator.rb
rails3-jquery-autocomplete-0.3.4 lib/generators/autocomplete_generator.rb