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
private/protected indentation fixes according to rails coding conventions #1838
Conversation
Thanks for the pull request, but those style changes just break the other pull requests without an explicit gain. |
Should I make those changes in small chunks? I ran the testcases and everything was fine. |
Thanks but there is no need. We are in general denying style changes. |
Got it. Thanks |
Also this style changes are wrong. private, protected and public are just method calls so code shouldn't be indented after them. |
but the guide lines are asking us to do so.. and I can see them in many rails libs too... |
Yeah ok, the guides are wrong so :), we need to fix that |
…te:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
I actually think private/protected should be outdented.
|
Fix incorrect recommendation from indenting after private/protected to not. Based on opinions of @spastorino, @jonleighton, @tenderlove rails#1838 (comment) https://en.twitter.com/#!/spastorino/status/142054749351575552 https://en.twitter.com/#!/tenderlove/status/142014046445641728 https://en.twitter.com/#!/jonleighton/status/142021813415841794
Fix incorrect recommendation from indenting after private/protected to not. Based on opinions of @spastorino, @jonleighton, @tenderlove rails/rails#1838 (comment) https://en.twitter.com/#!/spastorino/status/142054749351575552 https://en.twitter.com/#!/tenderlove/status/142014046445641728 https://en.twitter.com/#!/jonleighton/status/142021813415841794
I made a few private/protected indentation fixes in ActiveRecord, according to rails coding conventions given here http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions