Content being required via UI and db constraint is enough
We are not using/displaying model validations anywhere
This commit is contained in:
@@ -4,8 +4,6 @@ class Reaction < ApplicationRecord
|
||||
|
||||
scope :ordered, -> { order(:created_at) }
|
||||
|
||||
validates_presence_of :content
|
||||
|
||||
def all_emoji?
|
||||
content.match? /\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user