Skip to content

Commit c1b3d09

Browse files
committed
Setup users for blazer
1 parent ec043e4 commit c1b3d09

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

config/blazer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ override_csp: true
4040
# time_zone: "Pacific Time (US & Canada)"
4141

4242
# class name of the user model
43-
# user_class: User
43+
user_class: Admin::GitHubUser
4444

4545
# method name for the current user
46-
# user_method: current_user
46+
user_method: admin_user
4747

4848
# method name for the display name
49-
# user_name: name
49+
user_name: login
5050

5151
# custom before_action to use for auth
5252
# before_action_method: require_admin

config/initializers/blazer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Rails.autoloaders.main.on_load("Blazer::BaseController") do
2+
Blazer::BaseController.include GitHubOAuthable
3+
end

0 commit comments

Comments
 (0)