diff options
| author | Teddy Wing | 2017-06-14 18:04:37 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-14 18:04:37 +0200 |
| commit | 07c50e21b45b8fcf219410cbfb71f1c1e67e81b6 (patch) | |
| tree | 8c328ed29f79bc309f7108c5549cf20e7cd0c4e2 /script | |
| parent | b616626283a5e24d2b9996669c0978787229d9db (diff) | |
| download | chouette-core-07c50e21b45b8fcf219410cbfb71f1c1e67e81b6.tar.bz2 | |
TableBuilderHelper#build_links: Use existing `pundit_user` method
Instead of creating our own `user_context`, reuse the existing
`ApplicationController#pundit_user` method to get the context.
When I defined `user_context` I had done a project-find, found the
one place where we created a `UserContext`, and duplicated the code in
my method. Turns out after looking at the full `ApplicationController`
file, there's a handy method already there for us to use.
Refs #3479
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions
