Pass options through to link_to_add_association when calling with block for link text.

This commit is contained in:
Brian Meeker 2012-04-07 11:34:57 -04:00
parent 1d22eba498
commit 5fa318a7f6

View File

@ -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]