From 0807dca2fa7508ee994dcdc84bc5129ea9a7330c Mon Sep 17 00:00:00 2001 From: Alberto Almagro Date: Sat, 13 Oct 2018 16:56:51 +0200 Subject: 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. --- lib/action_text/content.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/action_text/content.rb') 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 -- cgit v1.2.3