I am not familiar with Rails, so I am a bit confused about what caused this. What does it have to do with mass-assignment?
Assuming this guy is right; the pub key class was allowing any old user to modify the owner_id of the pub key object and change who it belongs to. The pub key class wasn't configured to protect against mass owner_is assignment.