This project is archived and is in readonly mode.
Add missing parenthesis
Reported by Anil Wadghule | September 19th, 2010 @ 03:46 PM
Attached patch adds missing parenthesis for respond_to? method. It' a good practice to add parenthesis while passing arguments to a method.
Comments and changes to this ticket
-
Anil Wadghule September 19th, 2010 @ 03:46 PM
- Tag changed from consistent, parentheses to consistent
-
David Trasbo September 20th, 2010 @ 11:26 AM
-1
I disagree. It's only good practice to add parenthesis if it improves readability, e.g. if you have multiple method calls on a single line separated by
if
orunless
.I this case the line has just that method call and it's perfectly clear what method the argument gets passed to.
-
José Valim September 24th, 2010 @ 11:33 AM
- State changed from new to invalid
- Importance changed from to Low
I agree with David. There is no need for adding parenthensis to these. In any case, keep up the good work Anil!
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>