diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-22 10:03:26 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-22 11:51:59 -0700 |
commit | 57cc778fc851c606af4eb5f1dbc979d114637490 (patch) | |
tree | 61eddc3f8e5a97b0b677ab9e4c9f14ceb58e3bfa /activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb | |
parent | 3b814ed2b52305797451149dbb629b601a18165f (diff) | |
download | rails-57cc778fc851c606af4eb5f1dbc979d114637490.tar.gz rails-57cc778fc851c606af4eb5f1dbc979d114637490.tar.bz2 rails-57cc778fc851c606af4eb5f1dbc979d114637490.zip |
Push scale to type objects
Ideally types will be usable without having to specify a sql type
string, so we should keep the information related to parsing them on the
adapter or another object.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb index 74e8f30457..697dceb7c2 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb @@ -7,7 +7,7 @@ module ActiveRecord class_attribute :precision - def extract_scale(sql_type) + def scale 2 end |