aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-10-13 20:01:59 -0400
committerGitHub <noreply@github.com>2018-10-13 20:01:59 -0400
commitcdf58b8f1871bc26d21aab56fb2b7c1e8ec9a831 (patch)
treea99f4e0aa6b07e33ac894e085008de0696bf9fec
parent01b67837a116cd34c53d8d6e8e7eb1853a6a4710 (diff)
parent0807dca2fa7508ee994dcdc84bc5129ea9a7330c (diff)
downloadrails-cdf58b8f1871bc26d21aab56fb2b7c1e8ec9a831.tar.gz
rails-cdf58b8f1871bc26d21aab56fb2b7c1e8ec9a831.tar.bz2
rails-cdf58b8f1871bc26d21aab56fb2b7c1e8ec9a831.zip
Merge pull request #30 from albertoalmagro/remove-unused-options
Remove unused **options
-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