aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/numeric.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/numeric.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/numeric.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/numeric.rb b/activerecord/lib/active_record/connection_adapters/type/numeric.rb
deleted file mode 100644
index a3379831cb..0000000000
--- a/activerecord/lib/active_record/connection_adapters/type/numeric.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-module ActiveRecord
- module ConnectionAdapters
- module Type
- module Numeric # :nodoc:
- def number?
- true
- end
-
- def type_cast_for_write(value)
- case value
- when true then 1
- when false then 0
- when ::String then value.presence
- else super
- end
- end
- end
- end
- end
-end