diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-14 15:44:15 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-14 15:44:15 -0700 |
commit | 6a534455f66a24e807d75dccc847981fdf43fa18 (patch) | |
tree | 0497dbdb9b62aa3da179e4660b8a6ceb984f79de /activerecord/lib | |
parent | 8ba14c238e62e5f34846b4f82c5b787e33161511 (diff) | |
download | rails-6a534455f66a24e807d75dccc847981fdf43fa18.tar.gz rails-6a534455f66a24e807d75dccc847981fdf43fa18.tar.bz2 rails-6a534455f66a24e807d75dccc847981fdf43fa18.zip |
remove useless ternary in PostgreSQL adapter
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 121785bc15..37e94502a4 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -375,7 +375,7 @@ module ActiveRecord def supports_disable_referential_integrity?() #:nodoc: version = query("SHOW server_version")[0][0].split('.') - (version[0].to_i >= 8 && version[1].to_i >= 1) ? true : false + version[0].to_i >= 8 && version[1].to_i >= 1 rescue return false end |