Sha256: c830f5240f8548f7c8a38f38cff3ba1c85ac86da5fa6933534dcd98b99470d05

Contents?: true

Size: 392 Bytes

Versions: 23

Compression:

Stored size: 392 Bytes

Contents

module Virtus
  module ConstMissingExtensions

    # Hooks into const missing process to determine types of attributes
    #
    # @param [String] name
    #
    # @return [Class]
    #
    # @api private
    def const_missing(name)
      Attribute::Builder.determine_type(name) or
        Axiom::Types.const_defined?(name) && Axiom::Types.const_get(name) or
        super
    end

  end
end

Version data entries

23 entries across 21 versions & 5 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/lib/virtus/const_missing_extensions.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/lib/virtus/const_missing_extensions.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/virtus-2.0.0/lib/virtus/const_missing_extensions.rb
virtus2-2.1.0 lib/virtus/const_missing_extensions.rb
virtus2-2.0.2 lib/virtus/const_missing_extensions.rb
virtus2-2.0.1 lib/virtus/const_missing_extensions.rb
virtus-2.0.0 lib/virtus/const_missing_extensions.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/virtus-1.0.5/lib/virtus/const_missing_extensions.rb
virtus-1.0.5 lib/virtus/const_missing_extensions.rb
virtus-1.0.4 lib/virtus/const_missing_extensions.rb
virtus-1.0.3 lib/virtus/const_missing_extensions.rb
virtus-1.0.2 lib/virtus/const_missing_extensions.rb
virtus-1.0.1 lib/virtus/const_missing_extensions.rb
virtus-1.0.0 lib/virtus/const_missing_extensions.rb
virtus-1.0.0.rc2 lib/virtus/const_missing_extensions.rb