diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-12-28 20:53:58 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-12-28 20:53:58 +0100 |
commit | 0efec64520d5153e5a961f9a759883656b83bb53 (patch) | |
tree | 31bc504daa1318cb73659e7df01c8ab885e3495f /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | 66ee5890c5f21995b7fe0c486547f1287afe2b55 (diff) | |
parent | a2270ef2594b97891994848138614657363f2806 (diff) | |
download | rails-0efec64520d5153e5a961f9a759883656b83bb53.tar.gz rails-0efec64520d5153e5a961f9a759883656b83bb53.tar.bz2 rails-0efec64520d5153e5a961f9a759883656b83bb53.zip |
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 60ec01b95e..6685cb8663 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -950,13 +950,13 @@ module ActiveRecord # should know about this but can't detect it there, so deal with it here. money_precision = (postgresql_version >= 80300) ? 19 : 10 PostgreSQLColumn.module_eval(<<-end_eval) - def extract_precision(sql_type) - if sql_type =~ /^money$/ - #{money_precision} - else - super - end - end + def extract_precision(sql_type) # def extract_precision(sql_type) + if sql_type =~ /^money$/ # if sql_type =~ /^money$/ + #{money_precision} # 19 + else # else + super # super + end # end + end # end end_eval configure_connection |