Skip to content

Commit

Permalink
Update active_record_relations.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nsatohiro authored May 20, 2024
1 parent 765047c commit b34ab25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tapioca/dsl/compilers/active_record_relations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def create_relation_methods
] + constant.column_names.map do |column_name|
create_kw_opt_param(column_name, type: 'T.any(String, Integer, Symbol, T::Boolean, NilClass, T::Array[T.any(String, Integer, Symbol)], ActiveRecord::AssociationRelation, ActiveRecord::Relation)', default: 'nil')
end + [
create_kw_rest_param('nested', type: 'T.nilable(T.any(Integer, String, Symbol, Date, ActiveSupport::TimeWithZone, T::Array[T.any(Integer, String, Symbol)]))'),
create_kw_rest_param('nested', type: 'T.nilable(T.any(Integer, String, Symbol, Date, ActiveSupport::TimeWithZone, T::Array[T.any(Integer, String, Symbol)], T::Hash[T.untyped, T.untyped]))'),
],
relation_return_type: RelationWhereChainClassName,
association_return_type: AssociationRelationWhereChainClassName,
Expand Down

0 comments on commit b34ab25

Please sign in to comment.