diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-05 12:13:56 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-05 12:13:56 -0300 |
commit | d26e788ff22754f58f5c022e66a53866644e40c9 (patch) | |
tree | b4b4a37e3a631e402c54458461a15a270c3dfc01 | |
parent | ed21e18166774a8334d703634e15626691e6e5fa (diff) | |
parent | 7b910917d39bb7d7c5b1b7cdbfb14ff001cac7cc (diff) | |
download | rails-d26e788ff22754f58f5c022e66a53866644e40c9.tar.gz rails-d26e788ff22754f58f5c022e66a53866644e40c9.tar.bz2 rails-d26e788ff22754f58f5c022e66a53866644e40c9.zip |
Merge pull request #18345 from mtthgn/patch-1
Fix TypeError in Fixture creation
-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 3c71936c3b..5f6a75ebef 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -633,7 +633,7 @@ module ActiveRecord # interpolate the fixture label row.each do |key, value| - row[key] = value.gsub("$LABEL", label) if value.is_a?(String) + row[key] = value.gsub("$LABEL", label.to_s) if value.is_a?(String) end # generate a primary key if necessary |