afair / postgresql_cursor

ActiveRecord PostgreSQL Adapter extension for using a cursor to return a large result set
MIT License
612 stars 47 forks source link

uninitialized constant ActiveRecord::ConnectionAdapters::PostgreSQLAdapter #41

Closed mikebaldry closed 5 years ago

mikebaldry commented 5 years ago

For anyone seeing this error, I encountered it when adding postgresql_cursor to my Gemfile.

I had to use gem "postgresql_cursor", require: false and then require "postgresql_cursor" manually where I needed it.

This would be good to document, I think.

Rails 4.2.11, Ruby 2.5.3p105, Bundler 1.17.2

rstacruz commented 4 years ago

If anyone else has encountered this, this has been fixed in v0.6.3. Upgrading would fix it.