-
Notifications
You must be signed in to change notification settings - Fork 20
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
Deprecation warning in Rails 6 project #70
Comments
Oh, I'm also using Rails 6 (6.0.3.3), but I haven't encountered this problem.
Can you try to change generate specification file in the initializer ( |
I'm on Rails 6 (6.0.3.3) and I have found this problem. |
|
Actually, allow me to correct myself. After digging into the nature of this problem, and reading this thread, I have an actual solution to that deprecation message:
So you just need to require your |
This is needed in Rails 6.1.3 or else all descendants of the base_doc_classes are ignored. |
I have a Rails 6 application and the initializer for open api. Here's the content:
When the application is loaded (running
bin/rspec
for example) it displays the warning:Is there a way to solve this? From my perspective, it doesn't make any problem since the specification file is generated only once, but still I'm raising it here.
The text was updated successfully, but these errors were encountered: