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

@@ -29,6 +29,11 @@ class Report < ApplicationRecord
validates :comment, length: { maximum: 1000 }
connects_to database: {
writing: :master,
reading: :master
}
def local?
false # Force uri_for to use uri attribute
end