diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-29 14:38:45 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-29 14:38:45 -0200 |
commit | b344986bc3d94ca7821fc5e0eef1874882ac6cbb (patch) | |
tree | de176d78d739465a5c9598036715b37bfb70c413 /activerecord/lib | |
parent | 37f2defa9922e915ac021f303d1b0e3bcbafcd79 (diff) | |
parent | abce1aa289dca3afef2a2f48567bc18d6c623d61 (diff) | |
download | rails-b344986bc3d94ca7821fc5e0eef1874882ac6cbb.tar.gz rails-b344986bc3d94ca7821fc5e0eef1874882ac6cbb.tar.bz2 rails-b344986bc3d94ca7821fc5e0eef1874882ac6cbb.zip |
Merge pull request #18718 from jgeiger/fix_ruby_2_2_comparable_warnings
Fix ruby 2.2 comparable warnings
Diffstat (limited to 'activerecord/lib')
-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 1e6b5c5d69..d6eafb16b7 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -589,7 +589,7 @@ module ActiveRecord # interpolate the fixture label row.each do |key, value| - row[key] = label if value == "$LABEL" + row[key] = label if value.is_a?(String) && value == "$LABEL" end # generate a primary key if necessary |