Sha256: eb6dbe6c474ab2d4180bcbcc916684ffd6201b8cc1607ac87beecfdef407ec7f

Contents?: true

Size: 465 Bytes

Versions: 18

Compression:

Stored size: 465 Bytes

Contents

# typed: strong

module SorbetRails::PluckToTStruct
  extend T::Sig
  sig {
    type_parameters(:U).
    params(
      ta_struct: ITypeAssert[T.type_parameter(:U)],
      associations: T::Hash[Symbol, String],
    ).
    returns(T::Array[T.type_parameter(:U)])
  }
  def pluck_to_tstruct(ta_struct, associations: {}); end
end

class ActiveRecord::Base
  extend SorbetRails::PluckToTStruct
end

class ActiveRecord::Relation
  include SorbetRails::PluckToTStruct
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sorbet-rails-0.7.34 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.33 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.32 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.31 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.27 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.26 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.25 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.24 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.23 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.22 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.20 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.19 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.18 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.5 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.4 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.3 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.2 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.7.1 lib/bundled_rbi/pluck_to_tstruct.rbi