1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Privatize constants

This constants meant to be private but `private_constant` was missing,
this commit makes them fully private by adding  `private_constant`.
This commit is contained in:
Alberto Almagro 2018-10-08 23:58:37 +02:00
parent a31f691ea9
commit 558ccf4a21

View file

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