method

find_attachment_gallery_nodes

find_attachment_gallery_nodes(content)
public

No documentation available.

# File actiontext/lib/action_text/attachment_gallery.rb, line 25
      def find_attachment_gallery_nodes(content)
        Fragment.wrap(content).find_all(selector).select do |node|
          node.children.all? do |child|
            if child.text?
              /\A(\n|\ )*\z/.match?(child.text)
            else
              child.matches? attachment_selector
            end
          end
        end
      end