Skip to content

Commit ef9dd87

Browse files
committed
docs(enmeshed): explain status group edge case
1 parent 84abfe9 commit ef9dd87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/controllers/users/nbp_wallet_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def finalize
4949
private
5050

5151
def accept_and_create_user(relationship) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
52+
# Enmeshed::Relationship checks for the presence of all the requested attributes first and later parses the
53+
# provided status group. If it is not a synonym of the valid ones, the attribute is cleared so that a fitting
54+
# alert can be passed on to the user here.
5255
if relationship.userdata[:status_group].blank?
5356
abort_and_refresh(
5457
relationship,

0 commit comments

Comments
 (0)