Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading ActiveRecord (models) in intializer leads to settings conflicts with Rails #913

Closed
hidde-jan opened this issue Dec 23, 2016 · 1 comment
Labels

Comments

@hidde-jan
Copy link

See this issue: rails/rails#23589

Using doorkeeper will cause ActiveRecord to be loaded before Rails' own new_framework_defaults.rb. It seems that it's not 'safe' to load AR models in an initializer and that such things should be deferred until later using ActiveSupport.on_load(:active_record).

@nbulaj
Copy link
Member

nbulaj commented Feb 3, 2018

Thanks @hidde-jan , fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants