Skip to content

Commit

Permalink
Bug in the previous fix
Browse files Browse the repository at this point in the history
In place change returns nil if the string was not modified
  • Loading branch information
jfontan committed Apr 3, 2013
1 parent d34d81b commit 0157a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def save_version(code_id, code)
:update => {
'$set' => {
:modified_at => time,
:image => code_data['image'].tr!(%q{"'><}, '')
:image => code_data['image'].tr(%q{"'><}, '')
},
'$push' => { :versions => data }
}
Expand Down

0 comments on commit 0157a46

Please sign in to comment.