models: factor out concerns to app/logical/concerns.

This commit is contained in:
evazion
2020-02-19 15:50:42 -06:00
parent f54470ddfb
commit bd6d896ee0
10 changed files with 332 additions and 345 deletions

View File

@@ -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