Add writing role for some moderation classes, update verification method.

This commit is contained in:
Fosco Marotto
2021-02-11 18:34:04 -05:00
parent 5a5150757e
commit 7a2594e105
6 changed files with 33 additions and 4 deletions

View File

@@ -23,6 +23,11 @@ class SessionActivation < ApplicationRecord
to: :access_token,
allow_nil: true
connects_to database: {
writing: :master,
reading: :master
}
def detection
@detection ||= Browser.new(user_agent)
end