Permalink
Browse files

remove useless ternary in PostgreSQL adapter

  • Loading branch information...
1 parent 8ba14c2 commit 6a534455f66a24e807d75dccc847981fdf43fa18 @tenderlove tenderlove committed Jul 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -375,7 +375,7 @@ def quoted_date(value) #:nodoc:
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

0 comments on commit 6a53445

Please sign in to comment.