aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-21 20:16:21 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-21 20:16:21 -0700
commitd6d63767795dd5c47a57d37d075e52c2043a87bd (patch)
treecb178fcc7aac6a97115b9a7aecdaf892bd91f07e /activerecord
parent26fd5f0cd58814a0391ea681aacf98370cc079a8 (diff)
downloadrails-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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/fixtures.rb2
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