Skip to content

Commit

Permalink
Fixes issue crowdint#94
Browse files Browse the repository at this point in the history
postgres? should be checking if PGconn is defined
not PGConn
  • Loading branch information
David Padilla committed Sep 21, 2011
1 parent 148b5f4 commit 3778acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rails3-jquery-autocomplete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'rails3-jquery-autocomplete/autocomplete'

module Rails3JQueryAutocomplete
autoload :Orm , 'rails3-jquery-autocomplete/orm'
autoload :Orm, 'rails3-jquery-autocomplete/orm'

unless ::Rails.version < "3.1"
require 'rails3-jquery-autocomplete/rails/engine'
Expand Down
2 changes: 1 addition & 1 deletion lib/rails3-jquery-autocomplete/orm/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_autocomplete_where_clause(model, term, method, options)
end

def postgres?
defined?(PGConn)
defined?(PGconn)
end
end
end
Expand Down

0 comments on commit 3778acd

Please sign in to comment.