diff options
author | Javan Makhmali <javan@javan.us> | 2018-10-11 08:42:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 08:42:16 -0400 |
commit | 62c27e18929e2119705a2bcb249184a917f7ded1 (patch) | |
tree | 064baf088a3a9e2e520afc31de50e312e780887b /lib | |
parent | a31f691ea9ec973e2d4b4c39c993e4114a7123c3 (diff) | |
parent | 558ccf4a21ada0dbd3452a9bf7fc06376bf1dd20 (diff) | |
download | rails-62c27e18929e2119705a2bcb249184a917f7ded1.tar.gz rails-62c27e18929e2119705a2bcb249184a917f7ded1.tar.bz2 rails-62c27e18929e2119705a2bcb249184a917f7ded1.zip |
Merge pull request #23 from albertoalmagro/privatize-constants
Privatize constants
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_text/attachment_gallery.rb | 9 |
1 files 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 |