Sha256: b771537ca7d590aeb4424466968530d03fe82e0b41dd2a6cf3fc9747609723ad

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

module ActiveRecord
  module OracleEnhanced
    module Type
      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

7 entries across 7 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-1.8.2 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.1 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.0 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.0.rc3 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.0.rc2 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.0.rc1 lib/active_record/oracle_enhanced/type/boolean.rb
activerecord-oracle_enhanced-adapter-1.8.0.beta1 lib/active_record/oracle_enhanced/type/boolean.rb