You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a non-activerecord Rails application (Mongoid, Nobrainer or whatever other ORM than ActiveRecord)
Install the gem
Run the rails generate doorkeeper:install command
Expected behavior
Doorkeeper should have see that ActiveRecord is unknown in my project, but I have added the doorkeeper-rethinkdb gem and should skip all the ActiveRecord code.
Actual behavior
I got the following error:
/usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/orm/active_record/access_grant.rb:6:in `<module:Doorkeeper>': uninitialized constant ActiveRecord (NameError)
Did you mean? ActiveModel
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/orm/active_record/access_grant.rb:5:in `<main>'
from /usr/local/bundle/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /usr/local/bundle/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /usr/local/bundle/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
from /usr/local/bundle/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /usr/local/bundle/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /usr/local/bundle/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb:288:in `const_get'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb:288:in `block in constantize'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb:284:in `each'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb:284:in `inject'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb:284:in `constantize'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/config.rb:442:in `access_grant_model'
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/orm/active_record.rb:40:in `initialize_configured_associations'
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/orm/active_record.rb:32:in `run_hooks'
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper.rb:164:in `run_orm_hooks'
from /usr/local/bundle/gems/doorkeeper-5.6.6/lib/doorkeeper/engine.rb:24:in `block in <class:Engine>'
from /usr/local/bundle/gems/activesupport-6.1.4.4/lib/active_support/callbacks.rb:427:in `instance_exec'
...
System configuration
Doorkeeper version: 5.6.6 Ruby version: 3.0.4
The text was updated successfully, but these errors were encountered:
My ORM is rethinkdb, but that doesn't really matter I guess, and at that moment I don't have a doorkeeper.rb initialiser since I have just added the doorkeeper gem to my Gemfile, ran bundle and wanted to run rails generate doorkeeper:install like the documentation tells so.
Yup, same issue for me. Added gem - can't run the rake task. Maybe doing something wrong, but clearly something is not clear in the documentation if I'm not the only one stumbling on this.
Steps to reproduce
rails generate doorkeeper:install
commandExpected behavior
Doorkeeper should have see that ActiveRecord is unknown in my project, but I have added the
doorkeeper-rethinkdb
gem and should skip all the ActiveRecord code.Actual behavior
I got the following error:
System configuration
Doorkeeper version:
5.6.6
Ruby version:
3.0.4
The text was updated successfully, but these errors were encountered: