Add default OAuths (#259)

This commit is contained in:
Riccardo Graziosi
2024-01-22 14:45:48 +01:00
committed by GitHub
parent 0828c9c879
commit 653e139a9e
32 changed files with 512 additions and 213 deletions

View File

@@ -49,7 +49,8 @@ class ApplicationController < ActionController::Base
end
def load_oauths
@o_auths = Current.tenant_or_raise!.o_auths
@o_auths = OAuth
.include_defaults
.where(is_enabled: true)
.order(created_at: :asc)
end