diff options
author | Dan Croak and Sean Griffin <dan+sean@thoughtbot.com> | 2014-05-21 17:16:01 -0700 |
---|---|---|
committer | Dan Croak <dan@thoughtbot.com> | 2014-05-22 11:44:02 -0700 |
commit | 55400052186c3b3cb15c86f38ee266e5dafed696 (patch) | |
tree | 5bbcf2fab4697ad63d90ab65a3a7efa19b1a31dd /activerecord/lib/active_record/connection_adapters/type/value.rb | |
parent | 35c160066aea1f0ded952da0f3f9e78b61c38507 (diff) | |
download | rails-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.rb | 3 |
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 |