Sha256: 5cf78fccaa4a5dabd1845f75f02d46caa0bf514d839f62f074534d29cfc519f4

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 Bytes

Contents

# typed: strong

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

class ActiveRecord::Base
  extend SorbetRails::PluckToTStruct
end

class ActiveRecord::Relation
  include SorbetRails::PluckToTStruct
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sorbet-rails-0.7.0 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.5.1 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.5 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.4 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.3 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.2 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.1 lib/bundled_rbi/pluck_to_tstruct.rbi
sorbet-rails-0.6.0 lib/bundled_rbi/pluck_to_tstruct.rbi