Flowdock
method

find_attachment_gallery_nodes

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: AttachmentGallery
find_attachment_gallery_nodes(content) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actiontext/lib/action_text/attachment_gallery.rb, line 22
      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
Register or log in to add new notes.