Skip to content

Commit 57facfb

Browse files
author
Satohiro Wakabayashi
committed
Update lib/tapioca/dsl/compilers/active_record_relations.rb
1 parent f1e9240 commit 57facfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tapioca/dsl/compilers/active_record_relations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def create_common_method(name, parameters: [], return_type: nil)
10051005
#: -> void
10061006
def create_where_relation_method
10071007
parameters = constant.column_names.map do |column_name|
1008-
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, T::Range[T.untyped])', default: 'nil')
1008+
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, T::Range[T.untyped]), ActiveSupport::TimeWithZone', default: 'nil')
10091009
end + constant.reflect_on_all_associations(:belongs_to).map(&:name).map do |association_name|
10101010
create_kw_opt_param(association_name, type: 'T.any(NilClass, ActiveRecord::Base, ActiveRecord::AssociationRelation, ActiveRecord::Relation, T::Array[ActiveRecord::Base], T::Hash[T.any(String, Symbol), T.untyped])', default: 'nil')
10111011
end + [

0 commit comments

Comments
 (0)