1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

reverse comparison because of strange AS behavior

http://tenderlovemaking.com/2013/05/21/one-danger-of-freedom-patches.html
This commit is contained in:
Aaron Patterson 2013-05-21 20:16:21 -07:00
parent 26fd5f0cd5
commit d6d6376779

View file

@ -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