Add writing role for some moderation classes, update verification method.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user