diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-11 21:04:11 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-09-11 21:04:11 -0300 |
commit | 985ce470f66f9466a2902c176422f5b5d7e4c721 (patch) | |
tree | 4d218cfcb049916959bfb987d31fd3f73bee5474 /activerecord/lib | |
parent | bbbef23e1f7ece2eebe860d687931b8998b1a926 (diff) | |
download | rails-985ce470f66f9466a2902c176422f5b5d7e4c721.tar.gz rails-985ce470f66f9466a2902c176422f5b5d7e4c721.tar.bz2 rails-985ce470f66f9466a2902c176422f5b5d7e4c721.zip |
Fix inverted conditional
Oops, I should had run the tests
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index a222e2d653..4bb554f74d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -443,7 +443,7 @@ module ActiveRecord end def without_prepared_statement?(binds) - @prepared_statements || binds.empty? + !@prepared_statements || binds.empty? end end end |