method

find_attachment_gallery_nodes

Importance_0
v7.1.3.2 - 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 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
Register or log in to add new notes.