-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call Devise RegistrationsController block
When a Devise user calls create with a block, that block was swallowed by the block we use to perform our resource information extraction for registration events. Ensure the original block is called. We call it after our analysis in the event we should block for some reason, thus protecting the additional user code in their block. JIRA: - [SCRS-704](https://datadoghq.atlassian.net/browse/SCRS-704) - [APPSEC-12115](https://datadoghq.atlassian.net/browse/APPSEC-12115) - [APPSEC-12770](https://datadoghq.atlassian.net/browse/APPSEC-12770)
- Loading branch information
Showing
2 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,8 @@ def create | |
**event_information.to_h | ||
) | ||
end | ||
|
||
yield resource if block_given? | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters