Sha256: 6655291c23f47dbd31202f534d37d2a32f07d1e88496739dbae0b48110e2c0f6
Contents?: true
Size: 744 Bytes
Versions: 19
Compression:
Stored size: 744 Bytes
Contents
module ActiveRecord module ConnectionAdapters module MySQL class TypeMetadata < DelegateClass(SqlTypeMetadata) # :nodoc: undef to_yaml if method_defined?(:to_yaml) attr_reader :extra def initialize(type_metadata, extra: "") super(type_metadata) @type_metadata = type_metadata @extra = extra end def ==(other) other.is_a?(MySQL::TypeMetadata) && attributes_for_hash == other.attributes_for_hash end alias eql? == def hash attributes_for_hash.hash end protected def attributes_for_hash [self.class, @type_metadata, extra] end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems