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
We are using custom ID types for our primary keys:
class MyModel < ApplicationRecord attribute :id, MyModelId.new end MyModel.find(MyModelId.new("123"))
With 0.13.0 this results in type errors when regenerating DSL RBI files:
Expected T.any(TrueClass, FalseClass, String, Symbol, ActiveSupport::Multibyte::Chars, Numeric, ActiveModel::Type::Binary::Data, ActiveRecord::Type::Time::Value, Date, Time, ActiveSupport::Duration, T::Class[T.anything]) but found MyModelId for argument args https://srb.help/7002 26 | MyModel.find(MyModelId.new("123"))
Is there anyway to support id types defined by attribute :id?
attribute :id
The text was updated successfully, but these errors were encountered:
type_for_attribute
find
No branches or pull requests
We are using custom ID types for our primary keys:
With 0.13.0 this results in type errors when regenerating DSL RBI files:
Is there anyway to support id types defined by
attribute :id
?The text was updated successfully, but these errors were encountered: