Skip to content

Raise a helpful error when current_user_method is not defined on the controller - #777

Closed
SergiuLupaiescu wants to merge 1 commit into
collectiveidea:mainfrom
SergiuLupaiescu:fix/current-user-method-error
Closed

SergiuLupaiescu wants to merge 1 commit into
collectiveidea:mainfrom
SergiuLupaiescu:fix/current-user-method-error

Conversation

@SergiuLupaiescu

Copy link
Copy Markdown

When Audited.current_user_method points to a method that doesn't exist on the controller, the sweeper silently returns nil instead of raising an error, making the problem hard to track down.

Fixes #772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audited.current_user_method fails silently if specified method not defined

1 participant