class method
self.fragment_by_replacing_attachment_gallery_nodes
Ruby on Rails 7.0.10
Since v6.0.6Signature
self.fragment_by_replacing_attachment_gallery_nodes(content)
No documentation comment.
Parameters
-
contentreq
Source
# File actiontext/lib/action_text/attachment_gallery.rb, line 17
def fragment_by_replacing_attachment_gallery_nodes(content)
Fragment.wrap(content).update do |source|
find_attachment_gallery_nodes(source).each do |node|
node.replace(yield(node).to_s)
end
end
end
Defined in actiontext/lib/action_text/attachment_gallery.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::AttachmentGallery