Open tmaier opened 3 months ago
The user model has the following code:
<%- if options.tenantable? %> before_validation on: :create do self.account = Account.new end <%- end -%>
I think this would lead to that the set account gets overriden. I would propose to be a bit more conservative here:
<%- if options.tenantable? %> before_validation on: :create do self.account ||= Account.new end <%- end -%>
The user model has the following code:
I think this would lead to that the set account gets overriden. I would propose to be a bit more conservative here: