aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-22 10:03:26 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-22 11:51:59 -0700
commit57cc778fc851c606af4eb5f1dbc979d114637490 (patch)
tree61eddc3f8e5a97b0b677ab9e4c9f14ceb58e3bfa /activerecord/lib/active_record/connection_adapters/postgresql/oid/money.rb
parent3b814ed2b52305797451149dbb629b601a18165f (diff)
downloadrails-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.rb2
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