Pass options through to link_to_add_association when calling with block for link text.
This commit is contained in:
parent
1d22eba498
commit
5fa318a7f6
@ -58,7 +58,7 @@ module Cocoon
|
|||||||
association = args[1]
|
association = args[1]
|
||||||
html_options = args[2] || {}
|
html_options = args[2] || {}
|
||||||
options = args[3] || {}
|
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
|
else
|
||||||
name = args[0]
|
name = args[0]
|
||||||
f = args[1]
|
f = args[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user