diff options
author | Xavier Noria <fxn@hashref.com> | 2008-12-28 19:48:05 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-28 19:49:28 +0000 |
commit | a2270ef2594b97891994848138614657363f2806 (patch) | |
tree | 29962a36c4eb70272df2665db2b28d5b3ad15b99 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | 1fb275541a58e6a2100261c6117e96e6c014cc6c (diff) | |
download | rails-a2270ef2594b97891994848138614657363f2806.tar.gz rails-a2270ef2594b97891994848138614657363f2806.tar.bz2 rails-a2270ef2594b97891994848138614657363f2806.zip |
Inline code comments for class_eval/module_eval [#1657 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
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 |