aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_text/content.rb
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-10-13 16:56:51 +0200
committerAlberto Almagro <albertoalmagro@gmail.com>2018-10-13 16:56:51 +0200
commit0807dca2fa7508ee994dcdc84bc5129ea9a7330c (patch)
treea99f4e0aa6b07e33ac894e085008de0696bf9fec /lib/action_text/content.rb
parent01b67837a116cd34c53d8d6e8e7eb1853a6a4710 (diff)
downloadrails-0807dca2fa7508ee994dcdc84bc5129ea9a7330c.tar.gz
rails-0807dca2fa7508ee994dcdc84bc5129ea9a7330c.tar.bz2
rails-0807dca2fa7508ee994dcdc84bc5129ea9a7330c.zip
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.
Diffstat (limited to 'lib/action_text/content.rb')
-rw-r--r--lib/action_text/content.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_text/content.rb b/lib/action_text/content.rb
index b99e9bb49c..2cf6c96556 100644
--- a/lib/action_text/content.rb
+++ b/lib/action_text/content.rb
@@ -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