Sha256: 2be385fd52dcc2423421a5d7a9c1e5eb640d11f6003ddd9ae31fc5cf58484ae1

Contents?: true

Size: 420 Bytes

Versions: 23

Compression:

Stored size: 420 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module SQLServer
      class SqlTypeMetadata < ActiveRecord::ConnectionAdapters::SqlTypeMetadata

        def initialize(**kwargs)
          @sqlserver_options = kwargs.extract!(:sqlserver_options)
          super(**kwargs)
        end

        protected

        def attributes_for_hash
          super + [@sqlserver_options]
        end

      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
activerecord-sqlserver-adapter-5.0.3 lib/active_record/connection_adapters/sqlserver/sql_type_metadata.rb
activerecord-sqlserver-adapter-5.0.1 lib/active_record/connection_adapters/sqlserver/sql_type_metadata.rb
activerecord-sqlserver-adapter-5.0.0 lib/active_record/connection_adapters/sqlserver/sql_type_metadata.rb