diff --git a/app/models/post.rb b/app/models/post.rb index a61f1a30bf94ffb61e79c1989add78dfc5eafa05..37d3d691d9c1028623cfa581c54a7c4f859697fd 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -32,7 +32,7 @@ class Post < ApplicationRecord validate :stripped_minimum, if: :question? validate :category_allows_post_type validate :license_available - validate :required_tags? + validate :required_tags?, if: -> { post_type_id == Question.post_type_id } scope :undeleted, -> { where(deleted: false) } scope :deleted, -> { where(deleted: true) }