Skip to content

Commit

Permalink
Merge branch 'main' of github.com:excid3/refer
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 5, 2024
2 parents 0ad7bea + 7877591 commit 8ff1273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ user.referral_codes.create(code: "chris")
To customize the referral code generator:

```ruby
Refer.code_generator = ->(referrer) { [id, SecureRandom.alphanumeric(8)].join("-") }
Refer.code_generator = ->(referrer) { [referrer.id, SecureRandom.alphanumeric(8)].join("-") }
#=> generates codes like "1-7frb5fUw"
```

Expand Down

0 comments on commit 8ff1273

Please sign in to comment.