diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-21 20:16:21 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-21 20:16:21 -0700 |
commit | d6d63767795dd5c47a57d37d075e52c2043a87bd (patch) | |
tree | cb178fcc7aac6a97115b9a7aecdaf892bd91f07e | |
parent | 26fd5f0cd58814a0391ea681aacf98370cc079a8 (diff) | |
download | rails-d6d63767795dd5c47a57d37d075e52c2043a87bd.tar.gz rails-d6d63767795dd5c47a57d37d075e52c2043a87bd.tar.bz2 rails-d6d63767795dd5c47a57d37d075e52c2043a87bd.zip |
reverse comparison because of strange AS behavior
http://tenderlovemaking.com/2013/05/21/one-danger-of-freedom-patches.html
-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 45dc26f0ed..33e19313a0 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -567,7 +567,7 @@ module ActiveRecord # interpolate the fixture label row.each do |key, value| - row[key] = label if value == "$LABEL" + row[key] = label if "$LABEL" == value end # generate a primary key if necessary |