From 558ccf4a21ada0dbd3452a9bf7fc06376bf1dd20 Mon Sep 17 00:00:00 2001
From: Alberto Almagro <albertoalmagro@gmail.com>
Date: Mon, 8 Oct 2018 23:58:37 +0200
Subject: Privatize constants

This constants meant to be private but `private_constant` was missing,
this commit makes them fully private by adding  `private_constant`.
---
 lib/action_text/attachment_gallery.rb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/action_text/attachment_gallery.rb b/lib/action_text/attachment_gallery.rb
index a4694fc359..45afbff058 100644
--- a/lib/action_text/attachment_gallery.rb
+++ b/lib/action_text/attachment_gallery.rb
@@ -56,9 +56,10 @@ module ActionText
       "#<#{self.class.name} size=#{size.inspect}>"
     end
 
-    private
-      TAG_NAME = "div"
-      ATTACHMENT_SELECTOR = "#{ActionText::Attachment::SELECTOR}[presentation=gallery]"
-      SELECTOR = "#{TAG_NAME}:has(#{ATTACHMENT_SELECTOR} + #{ATTACHMENT_SELECTOR})"
+    TAG_NAME = "div"
+    ATTACHMENT_SELECTOR = "#{ActionText::Attachment::SELECTOR}[presentation=gallery]"
+    SELECTOR = "#{TAG_NAME}:has(#{ATTACHMENT_SELECTOR} + #{ATTACHMENT_SELECTOR})"
+
+    private_constant :TAG_NAME, :ATTACHMENT_SELECTOR, :SELECTOR
   end
 end
-- 
cgit v1.2.3