Skip to content

Maintenance: Remove authorizer instance variable on ApplicationController#2585

Merged
kevinrobinson merged 2 commits intomasterfrom
patch/remove-authorizer-instance-variable-from-application-controller
Sep 4, 2019
Merged

Maintenance: Remove authorizer instance variable on ApplicationController#2585
kevinrobinson merged 2 commits intomasterfrom
patch/remove-authorizer-instance-variable-from-application-controller

Conversation

@kevinrobinson
Copy link
Copy Markdown
Contributor

This is for after #2584 lands.

In #2584, it came up that instance variables on ApplicationController leak across calls to controller actions in rspec tests. This is not how I thought it worked, but turns out all the other uses of tests like this never came across this particular combo. Those kinds of tests are useful for exhaustively testing authorization rules for a given setup (eg across combinations of things like [educator, student]).

This removes the instance variable in ApplicationController related to authorization; it's not doing much there. This has no impact on authorization rules.

@kevinrobinson
Copy link
Copy Markdown
Contributor Author

selfie

@kevinrobinson kevinrobinson merged commit 4de9a32 into master Sep 4, 2019
@kevinrobinson kevinrobinson deleted the patch/remove-authorizer-instance-variable-from-application-controller branch September 4, 2019 19:43
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.

1 participant