Sha256: 81236e2a31e745f4bda6fe930535734e96d5fe3e630d3aa4cc3f6ed40a74b4ff

Contents?: true

Size: 415 Bytes

Versions: 15

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module Type
    module OracleEnhanced
      class Boolean < ActiveModel::Type::Boolean # :nodoc:
        private
          def cast_value(value)
            # Kind of adding 'n' and 'N' to  `FALSE_VALUES`
            if ["n", "N"].include?(value)
              false
            else
              super
            end
          end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-7.1.0 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.1.0.beta2 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.1.0.beta1 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.0.3 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.0.2 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.6 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.0.1 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.0.0 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-7.0.0.rc1 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.5 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.4 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.2 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.1 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.0 lib/active_record/type/oracle_enhanced/boolean.rb
activerecord-oracle_enhanced-adapter-6.1.0.rc1 lib/active_record/type/oracle_enhanced/boolean.rb