Sha256: c399dcd2a3d3adb6c4f4aa5cc420270758446846225434dca8be1b2970f0ab0d
Contents?: true
Size: 745 Bytes
Versions: 33
Compression:
Stored size: 745 Bytes
Contents
module ActiveRecord module ConnectionAdapters module MySQL class TypeMetadata < DelegateClass(SqlTypeMetadata) # :nodoc: attr_reader :extra, :strict def initialize(type_metadata, extra: "", strict: false) super(type_metadata) @type_metadata = type_metadata @extra = extra @strict = strict 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, strict] end end end end end
Version data entries
33 entries across 33 versions & 4 rubygems