All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.virtus-1.0.5.lib.virtus.const_missing_extensions.rb Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy