Guest User

Untitled

a guest
Jun 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Index: app/models/person_module.rb
  2. ===================================================================
  3. --- app/models/person_module.rb (revision 11632)
  4. +++ app/models/person_module.rb (working copy)
  5. @@ -614,7 +614,8 @@
  6. :conditions => ['email = ? and tag_id = ?', email.email, tag_id])
  7. person = email.person
  8. elsif person.class == Kid
  9. - person = Person.find_by_username(person.username)
  10. + connection.execute("rollback; begin;")
  11. + person = Kid.find_by_username(person.username)
  12. email = person.emails.first
  13. end
  14. end
Add Comment
Please, Sign In to add comment