Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: app/models/person_module.rb
- ===================================================================
- --- app/models/person_module.rb (revision 11632)
- +++ app/models/person_module.rb (working copy)
- @@ -614,7 +614,8 @@
- :conditions => ['email = ? and tag_id = ?', email.email, tag_id])
- person = email.person
- elsif person.class == Kid
- - person = Person.find_by_username(person.username)
- + connection.execute("rollback; begin;")
- + person = Kid.find_by_username(person.username)
- email = person.emails.first
- end
- end
Add Comment
Please, Sign In to add comment