aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-04 11:00:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-04 11:00:48 +0000
commit2afdf01e5c354bdc49b1d1329333a01b7012134b (patch)
treee3631f16f99eed3c04f9a6802a6f64fabdefd3f7
parent6f711551d4f03db37b14687c7f5d331631efd2fc (diff)
downloadrails-2afdf01e5c354bdc49b1d1329333a01b7012134b.tar.gz
rails-2afdf01e5c354bdc49b1d1329333a01b7012134b.tar.bz2
rails-2afdf01e5c354bdc49b1d1329333a01b7012134b.zip
Minor tweak for readability
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/lib/active_record/vendor/db2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/vendor/db2.rb b/activerecord/lib/active_record/vendor/db2.rb
index f0ec847d72..42171beda8 100644
--- a/activerecord/lib/active_record/vendor/db2.rb
+++ b/activerecord/lib/active_record/vendor/db2.rb
@@ -8,7 +8,7 @@ module DB2
def handle() @handle; end
def check_rc(rc)
- if rc != SQL_SUCCESS and rc != SQL_SUCCESS_WITH_INFO and rc != SQL_NO_DATA_FOUND
+ if ![SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA_FOUND].include?(rc)
rec = 1
msg = ''
loop do