mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
@@ -398,7 +398,7 @@ module ActionView
|
||||
def link_to_unless(condition, name, options = {}, html_options = {}, &block)
|
||||
if condition
|
||||
if block_given?
|
||||
block.arity <= 1 ? yield(name) : yield(name, options, html_options)
|
||||
block.arity <= 1 ? capture(name, &block) : capture(name, options, html_options, &block)
|
||||
else
|
||||
name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user