Sha256: 842afaa5e63d02e72cdd2effa3c43ac1159f3a54998d8874bab93a32c3daaf57

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

# typed: strict
# frozen_string_literal: true

module Tapioca
  module Dsl
    module Helpers
      module ActiveRecordConstantsHelper
        extend T::Sig

        ReflectionType = T.type_alias do
          T.any(::ActiveRecord::Reflection::ThroughReflection, ::ActiveRecord::Reflection::AssociationReflection)
        end

        AttributeMethodsModuleName = T.let("GeneratedAttributeMethods", String)
        AssociationMethodsModuleName = T.let("GeneratedAssociationMethods", String)
        DelegatedTypesModuleName = T.let("GeneratedDelegatedTypeMethods", String)

        RelationMethodsModuleName = T.let("GeneratedRelationMethods", String)
        AssociationRelationMethodsModuleName = T.let("GeneratedAssociationRelationMethods", String)
        CommonRelationMethodsModuleName = T.let("CommonRelationMethods", String)

        RelationClassName = T.let("PrivateRelation", String)
        RelationWhereChainClassName = T.let("PrivateRelationWhereChain", String)
        AssociationRelationClassName = T.let("PrivateAssociationRelation", String)
        AssociationRelationWhereChainClassName = T.let("PrivateAssociationRelationWhereChain", String)
        AssociationsCollectionProxyClassName = T.let("PrivateCollectionProxy", String)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tapioca-0.10.5 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.10.4 lib/tapioca/dsl/helpers/active_record_constants_helper.rb