Skip to content

Commit

Permalink
No need for an initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Jul 14, 2010
1 parent 9e4a75f commit ef60d16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ I'd recommend you understand what's happening with those 3 tools before attempti

Include the gem on your Gemfile

gem 'rails3-jquery-autocomplete', '>= 0.0.2'
gem 'rails3-jquery-autocomplete', '>= 0.0.3', :require => 'autocomplete'

Install it

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'rubygems'
require 'rake'
require 'echoe'

Echoe.new('rails3-jquery-autocomplete', '0.0.2') do |p|
Echoe.new('rails3-jquery-autocomplete', '0.0.3') do |p|
p.description = "Use jQuery's autocomplete plugin with Rails 3."
p.url = "http://github.com/crowdint/rails3-jquery-autocomplete"
p.author = "David Padilla"
Expand Down
7 changes: 5 additions & 2 deletions lib/autocomplete.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module AutoComplete

module Autocomplete
def self.included(base)
base.extend(ClassMethods)
end
Expand Down Expand Up @@ -42,4 +41,8 @@ def autocomplete(object, method, options = {})
end
end
end
end

class ActionController::Base
include Autocomplete
end
2 changes: 0 additions & 2 deletions lib/generators/autocomplete_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class AutocompleteGenerator < Rails::Generators::Base
def install
# Copy the unobtrusive JS file
copy_file('autocomplete-rails.js', 'public/autocomplete-rails.js')
# Rails initializer
copy_file('autocomplete.rb', 'config/initializers/autocomplete.rb')
end

def self.source_root
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/templates/autocomplete.rb

This file was deleted.

0 comments on commit ef60d16

Please sign in to comment.