Skip to content

Commit d024c3e

Browse files
committed
Add explicit require for Controllers::CurrentUser
Previously `RpiAuth::Controllers::CurrentUser` (which is in the `lib` directory) was only being required somewhat by accident via `RpiAuth::AuthController` which is required automatically, because it's in the `app/controllers` directory. I think a better solution would be to move the `CurrentUser` concern into the more idiomatic `app/controllers` directory (or perhaps `app/controllera/concerns`) where it would be automatically loaded and there would be no need for an expicit `require`. However, that feels like a bigger piece of work.
1 parent 44b40bf commit d024c3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'rpi_auth/controllers/current_user'
12
class ApplicationController < ActionController::Base
23
include RpiAuth::Controllers::CurrentUser
34
end

0 commit comments

Comments
 (0)