From 1fb3f363ce9f2417f7eb6699885a4d17bd1c81d1 Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Fri, 8 May 2020 18:01:02 +0100
Subject: [PATCH] Rubocop

---
 app/models/post.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models/post.rb b/app/models/post.rb
index 4c681d883..6d5033ba2 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -30,7 +30,7 @@ class Post < ApplicationRecord
   validate :stripped_minimum, if: :question?
   validate :category_allows_post_type
   validate :license_available
-  validate :has_required_tags
+  validate :required_tags?
 
   scope :undeleted, -> { where(deleted: false) }
   scope :deleted, -> { where(deleted: true) }
@@ -232,7 +232,7 @@ class Post < ApplicationRecord
     end
   end
 
-  def has_required_tags
+  def required_tags?
     required = category&.required_tag_ids
     return unless required.present? && !required.empty?
 
-- 
GitLab