aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/type/float.rb')
-rw-r--r--activerecord/lib/active_record/type/float.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/activerecord/lib/active_record/type/float.rb b/activerecord/lib/active_record/type/float.rb
deleted file mode 100644
index d88482b85d..0000000000
--- a/activerecord/lib/active_record/type/float.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-module ActiveRecord
- module Type
- class Float < Value # :nodoc:
- include Helpers::Numeric
-
- def type
- :float
- end
-
- alias serialize cast
-
- private
-
- def cast_value(value)
- case value
- when ::Float then value
- when "Infinity" then ::Float::INFINITY
- when "-Infinity" then -::Float::INFINITY
- when "NaN" then ::Float::NAN
- else value.to_f
- end
- end
- end
- end
-end