mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused **options
I'm not sure if this is going to be used in the future or not, but for the time being we shouldn't maintain parameters that we aren't using. We can always add them later when needed.
This commit is contained in:
parent
01b67837a1
commit
0807dca2fa
1 changed files with 3 additions and 3 deletions
|
@ -64,9 +64,9 @@ module ActionText
|
|||
self.class.new(content, canonicalize: false)
|
||||
end
|
||||
|
||||
def render_attachment_galleries(**options, &block)
|
||||
def render_attachment_galleries(&block)
|
||||
content = ActionText::AttachmentGallery.fragment_by_replacing_attachment_gallery_nodes(fragment) do |node|
|
||||
block.call(attachment_gallery_for_node(node, **options))
|
||||
block.call(attachment_gallery_for_node(node))
|
||||
end
|
||||
self.class.new(content, canonicalize: false)
|
||||
end
|
||||
|
@ -119,7 +119,7 @@ module ActionText
|
|||
with_full_attributes ? attachment.with_full_attributes : attachment
|
||||
end
|
||||
|
||||
def attachment_gallery_for_node(node, **options)
|
||||
def attachment_gallery_for_node(node)
|
||||
ActionText::AttachmentGallery.from_node(node)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue