Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci skip] Fix API documentation for link_to_if #38827

Merged
merged 1 commit into from Mar 27, 2020
Merged

Conversation

schmijos
Copy link
Contributor

Probably this is a copy-and-paste error I fix here.

@rails-bot rails-bot bot added the actionview label Mar 26, 2020
@@ -412,7 +412,7 @@ def link_to_unless(condition, name, options = {}, html_options = {}, &block)
# Creates a link tag of the given +name+ using a URL created by the set of
# +options+ if +condition+ is true, otherwise only the name is
# returned. To specialize the default behavior, you can pass a block that
# accepts the name or the full argument list for +link_to_unless+ (see the examples
# accepts the name or the full argument list for +link_to_if+ (see the examples
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the "(see the examples in +link_to_unless+)" part because the doc have the example since f07d0e2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kamipo kamipo merged commit f41730c into rails:master Mar 27, 2020
@schmijos schmijos deleted the patch-1 branch March 27, 2020 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants