diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-05-04 21:39:41 -0700 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-05-04 22:58:37 -0700 |
commit | 2ec6ef5ddae7667e7bb37c0aa905848a9027da82 (patch) | |
tree | 53c8e92c88508525a8fd20aa1484e68a0bea0461 | |
parent | 58950ee224e8d81cb8bd79edb4a2f0fb7ca75b68 (diff) | |
download | rails-2ec6ef5ddae7667e7bb37c0aa905848a9027da82.tar.gz rails-2ec6ef5ddae7667e7bb37c0aa905848a9027da82.tar.bz2 rails-2ec6ef5ddae7667e7bb37c0aa905848a9027da82.zip |
Change unless + ! into if
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 9796b0a321..a01e2f74ff 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -823,7 +823,7 @@ module ActiveRecord end def setup_fixtures - return unless !ActiveRecord::Base.configurations.blank? + return if ActiveRecord::Base.configurations.blank? if pre_loaded_fixtures && !use_transactional_fixtures raise RuntimeError, 'pre_loaded_fixtures requires use_transactional_fixtures' |