aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/value.rb
diff options
context:
space:
mode:
authorDan Croak and Sean Griffin <dan+sean@thoughtbot.com>2014-05-21 17:16:01 -0700
committerDan Croak <dan@thoughtbot.com>2014-05-22 11:44:02 -0700
commit55400052186c3b3cb15c86f38ee266e5dafed696 (patch)
tree5bbcf2fab4697ad63d90ab65a3a7efa19b1a31dd /activerecord/lib/active_record/connection_adapters/type/value.rb
parent35c160066aea1f0ded952da0f3f9e78b61c38507 (diff)
downloadrails-55400052186c3b3cb15c86f38ee266e5dafed696.tar.gz
rails-55400052186c3b3cb15c86f38ee266e5dafed696.tar.bz2
rails-55400052186c3b3cb15c86f38ee266e5dafed696.zip
Move `extract_precision` onto type objects
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/value.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type/value.rb3
1 files changed, 3 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 52d9ed9bc0..6687c9a2a4 100644
--- a/activerecord/lib/active_record/connection_adapters/type/value.rb
+++ b/activerecord/lib/active_record/connection_adapters/type/value.rb
@@ -3,8 +3,11 @@ module ActiveRecord
module Type
class Value # :nodoc:
def type; end
+
def extract_scale(sql_type); end
+ def extract_precision(sql_type); end
+
def type_cast(value)
cast_value(value) unless value.nil?
end