Sha256: 3481453d6c489a13f8e82e2b1de752a2e37fd047336f0705118f9e98b43cf955

Contents?: true

Size: 1.17 KB

Versions: 17

Compression:

Stored size: 1.17 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)

        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

17 entries across 17 versions & 1 rubygems

Version Path
tapioca-0.10.3 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.10.2 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.10.1 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.10.0 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.9.4 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.9.3 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.9.2 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.9.1 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.9.0 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.8.3 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.8.2 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.7.3 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.8.1 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.8.0 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.7.2 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.7.1 lib/tapioca/dsl/helpers/active_record_constants_helper.rb
tapioca-0.7.0 lib/tapioca/dsl/helpers/active_record_constants_helper.rb