Merge branch 'master' into attribute-searching
This commit is contained in:
@@ -50,7 +50,7 @@ class PostDisapproval < ApplicationRecord
|
||||
end
|
||||
|
||||
def validate_disapproval
|
||||
if post.status == "active"
|
||||
if post.is_active?
|
||||
errors[:post] << "is already active and cannot be disapproved"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user