We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec043e4 commit c1b3d09Copy full SHA for c1b3d09
2 files changed
config/blazer.yml
@@ -40,13 +40,13 @@ override_csp: true
40
# time_zone: "Pacific Time (US & Canada)"
41
42
# class name of the user model
43
-# user_class: User
+user_class: Admin::GitHubUser
44
45
# method name for the current user
46
-# user_method: current_user
+user_method: admin_user
47
48
# method name for the display name
49
-# user_name: name
+user_name: login
50
51
# custom before_action to use for auth
52
# before_action_method: require_admin
config/initializers/blazer.rb
@@ -0,0 +1,3 @@
1
+Rails.autoloaders.main.on_load("Blazer::BaseController") do
2
+ Blazer::BaseController.include GitHubOAuthable
3
+end
0 commit comments