We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ActiveRecord supports providing a class as the argument to a callback: https://guides.rubyonrails.org/active_record_callbacks.html#callback-classes
class PictureFile < ApplicationRecord after_destroy PictureFileCallbacks end
But the types for ActiveRecord classes only allow a nilable Symbol as the first argument to callbacks:
sorbet-typed/lib/activerecord/all/activerecord.rbi
Line 1070 in 9298edd
The text was updated successfully, but these errors were encountered:
https://sorbet.org/docs/faq#it-looks-like-sorbets-types-for-the-stdlib-are-wrong
Sorry, something went wrong.
No branches or pull requests
ActiveRecord supports providing a class as the argument to a callback: https://guides.rubyonrails.org/active_record_callbacks.html#callback-classes
But the types for ActiveRecord classes only allow a nilable Symbol as the first argument to callbacks:
sorbet-typed/lib/activerecord/all/activerecord.rbi
Line 1070 in 9298edd
The text was updated successfully, but these errors were encountered: