From 5fa318a7f60736b4db0b440e0c30236cd23f32d9 Mon Sep 17 00:00:00 2001 From: Brian Meeker Date: Sat, 7 Apr 2012 11:34:57 -0400 Subject: [PATCH] Pass options through to link_to_add_association when calling with block for link text. --- lib/cocoon/view_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoon/view_helpers.rb b/lib/cocoon/view_helpers.rb index 9dff70e..ed832a6 100644 --- a/lib/cocoon/view_helpers.rb +++ b/lib/cocoon/view_helpers.rb @@ -58,7 +58,7 @@ module Cocoon association = args[1] html_options = args[2] || {} options = args[3] || {} - link_to_add_association(capture(&block), f, association, html_options) + link_to_add_association(capture(&block), f, association, html_options, options) else name = args[0] f = args[1]