Guest User

Untitled

a guest
Jul 21st, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. >> User::RandomInvitationsJoiner.new.join_all
  2. NoMethodError: You have a nil object when you didn't expect it!
  3. The error occurred while evaluating nil.description
  4. from /home/docent/repos/new_klanz/klanz.git/klanz/lib/constraint_provider.rb:143:in `to_str'
  5. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/restriction_set.rb:16:in `apply_rules'
  6. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/restriction_set.rb:16:in `each'
  7. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/restriction_set.rb:16:in `apply_rules'
  8. from /home/docent/repos/new_klanz/klanz.git/klanz/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `send'
  9. from /home/docent/repos/new_klanz/klanz.git/klanz/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `method_missing'
  10. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/room/tournament_hosting.rb:29:in `available_by_restrictions_for?'
  11. from /home/docent/repos/new_klanz/klanz.git/klanz/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `send'
  12. from /home/docent/repos/new_klanz/klanz.git/klanz/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:177:in `method_missing'
  13. from /home/docent/repos/new_klanz/klanz.git/klanz/lib/invitation_guard.rb:14:in `valid?'
  14. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:33:in `can_be_joined?'
  15. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:23:in `join_in_room'
  16. from /home/docent/repos/new_klanz/klanz.git/klanz/vendor/rails/activerecord/lib/active_record/base.rb:1374:in `find'
  17. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:23:in `each'
  18. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:23:in `find'
  19. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:23:in `join_in_room'
  20. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:13:in `join_all'
  21. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:11:in `each'
  22. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:11:in `join_all'
  23. from /home/docent/repos/new_klanz/klanz.git/klanz/lib/with_lock.rb:27:in `with_lock'
  24. from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
  25. from /home/docent/repos/new_klanz/klanz.git/klanz/lib/with_lock.rb:27:in `with_lock'
  26. from /home/docent/repos/new_klanz/klanz.git/klanz/app/models/user/random_invitations_joiner.rb:9:in `join_all'
  27. from (irb):7
  28. from :0>>
Add Comment
Please, Sign In to add comment