Sha256: a47473cbdf8f489af515e9c688408b0958402004fb1625f2980d61b10af08af4

Contents?: true

Size: 384 Bytes

Versions: 29

Compression:

Stored size: 384 Bytes

Contents

require 'rails/generators'

module Autocomplete
  class UncompressedGenerator < Rails::Generators::Base
    def install
      # Copy the unobtrusive JS file
      copy_file('autocomplete-rails-uncompressed.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/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.7 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.6 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.5 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.4 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.3 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.2 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.1 lib/generators/autocomplete/uncompressed_generator.rb
rails3-jquery-autocomplete-1.0.0 lib/generators/autocomplete/uncompressed_generator.rb