aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-10-16 23:12:19 -0400
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-17 12:26:32 -0200
commitea14396c455b0816e87abe424275290fc4b09b32 (patch)
tree3f92e0afad41bb4039adbc2c2bbc6e9b4b9d1096 /activerecord/lib
parentb44e2abd9f65b5d253175e047b1f4c115385d2f3 (diff)
downloadrails-ea14396c455b0816e87abe424275290fc4b09b32.tar.gz
rails-ea14396c455b0816e87abe424275290fc4b09b32.tar.bz2
rails-ea14396c455b0816e87abe424275290fc4b09b32.zip
replace if ! with unless
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
index ec7035e540..3716937689 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
@@ -72,7 +72,7 @@ module ActiveRecord
end
adapter_method = "#{spec[:adapter]}_connection"
- if !respond_to?(adapter_method)
+ unless respond_to?(adapter_method)
raise AdapterNotFound, "database configuration specifies nonexistent #{spec[:adapter]} adapter"
end