Sha256: 6e9140beef9cb5b9033cca77f19bff197f73501e497eca931236efc6705ab0ce

Contents?: true

Size: 481 Bytes

Versions: 16

Compression:

Stored size: 481 Bytes

Contents

require 'active_model/type/string'

module ActiveRecord
  module OracleEnhanced
    module Type
      class NationalCharacterString < ActiveRecord::OracleEnhanced::Type::String # :nodoc:

        def serialize(value)
          return unless value
          Data.new(super)
        end

        class Data # :nodoc:
          def initialize(value)
            @value = value
          end

          def to_s
            @value
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-1.7.7 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.6 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.5 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.4 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.3 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.2 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.1 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.rc1 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta7 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta6 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta5 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta4 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta3 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta2 lib/active_record/oracle_enhanced/type/national_character_string.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta1 lib/active_record/oracle_enhanced/type/national_character_string.rb