Can't sign up with email domain that is automatically matched to group

Hmm when I test it I see an error on the server with stack like this:

ActiveRecord::AssociationTypeMismatch - User(#70301387222720) expected, got User(#70301532555640):
  activerecord (4.2.7.1) lib/active_record/associations/association.rb:218:in `raise_on_type_mismatch!'

  ... snip ...

  activerecord (4.2.7.1) lib/active_record/persistence.rb:50:in `create!'
  app/services/group_action_logger.rb:28:in `log_add_user_to_group'
  app/models/user.rb:934:in `block in automatic_group_membership'
  activerecord (4.2.7.1) lib/active_record/relation/delegation.rb:46:in `each'
  app/models/user.rb:930:in `automatic_group_membership'

Something broke recently, maybe related to the new group features? I can look more tomorrow.

4 إعجابات