aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/value.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/value.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/value.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/value.rb b/activerecord/lib/active_record/connection_adapters/type/value.rb
index 577e464553..289c27f6d4 100644
--- a/activerecord/lib/active_record/connection_adapters/type/value.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/value.rb
@@ -4,6 +4,10 @@ module ActiveRecord
class Value # :nodoc:
def type; end
+ def extract_scale(sql_type)
+ Type.extract_scale(sql_type)
+ end
+
def type_cast(value)
cast_value(value) unless value.nil?
end