aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/mutable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/type/mutable.rb')
-rw-r--r--activerecord/lib/active_record/type/mutable.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/lib/active_record/type/mutable.rb b/activerecord/lib/active_record/type/mutable.rb
deleted file mode 100644
index 066617ea59..0000000000
--- a/activerecord/lib/active_record/type/mutable.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module ActiveRecord
- module Type
- module Mutable # :nodoc:
- def type_cast_from_user(value)
- type_cast_from_database(type_cast_for_database(value))
- end
-
- # +raw_old_value+ will be the `_before_type_cast` version of the
- # value (likely a string). +new_value+ will be the current, type
- # cast value.
- def changed_in_place?(raw_old_value, new_value)
- raw_old_value != type_cast_for_database(new_value)
- end
- end
- end
-end