aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2012-03-13 09:57:51 -0400
committerDavid Heinemeier Hansson <david@loudthinking.com>2012-03-13 09:57:51 -0400
commit46313151bd2ff419251543eda1b1122d4cc7c5ed (patch)
tree8dc2dc1f04577c7c0b1fdf3a08d4b39986bfcc71 /railties
parentfc3e9b32fd88e19033c24136d5c06baa1a295084 (diff)
downloadrails-46313151bd2ff419251543eda1b1122d4cc7c5ed.tar.gz
rails-46313151bd2ff419251543eda1b1122d4cc7c5ed.tar.bz2
rails-46313151bd2ff419251543eda1b1122d4cc7c5ed.zip
Undo unwarranted change to coding conventions. I am not a fan of the aesthetics of private/public at the root but more importantly, we should not be changing coding conventions with almost a decades worth of history at a whim. The conventions are there to have a consistent coding style, that is their primary purpose. When there is so much existing code with the existing style, any change will have to lift an enormous burden of proof as to why its overwhelmingly superior. That is not the case here, so this is being reverted.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/contributing_to_ruby_on_rails.textile1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/guides/source/contributing_to_ruby_on_rails.textile b/railties/guides/source/contributing_to_ruby_on_rails.textile
index aac5e13978..8d29544edf 100644
--- a/railties/guides/source/contributing_to_ruby_on_rails.textile
+++ b/railties/guides/source/contributing_to_ruby_on_rails.textile
@@ -310,6 +310,7 @@ Rails follows a simple set of coding style conventions.
* Two spaces, no tabs.
* No trailing whitespace. Blank lines should not have any space.
* Outdent private/protected from method definitions. Same indentation as the class/module.
+* Indent after private/protected.
* Prefer +&amp;&amp;+/+||+ over +and+/+or+.
* Prefer class << self block over self.method for class methods.
* +MyClass.my_method(my_arg)+ not +my_method( my_arg )+ or +my_method my_arg+.