diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-02 08:48:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-02 09:17:02 -0800 |
commit | 7be50103d518927db347d5b86dafc6f182765323 (patch) | |
tree | 90b3ccf2ac32d38da5df36d112b9d9b2915ab4d7 /activerecord/lib | |
parent | ed6be5962420e75a60ccc32c3fdf575f1c14ff9a (diff) | |
download | rails-7be50103d518927db347d5b86dafc6f182765323.tar.gz rails-7be50103d518927db347d5b86dafc6f182765323.tar.bz2 rails-7be50103d518927db347d5b86dafc6f182765323.zip |
change if! to unless
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/transaction.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb b/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb index ebb4a1523f..c74f4e8fa5 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb @@ -24,7 +24,7 @@ module ActiveRecord end def set_state(state) - if !VALID_STATES.include?(state) + unless VALID_STATES.include?(state) raise ArgumentError, "Invalid transaction state: #{state}" end @state = state |