models: factor out concerns to app/logical/concerns.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
class Comment < ApplicationRecord
|
||||
include Mentionable
|
||||
|
||||
validate :validate_creator_is_not_limited, :on => :create
|
||||
validates_presence_of :body, :message => "has no content"
|
||||
belongs_to :post
|
||||
|
||||
Reference in New Issue
Block a user