aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-11-03 01:41:44 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-11-03 01:41:44 +0530
commitee917493e451e552fef18367f8bcba2f36080685 (patch)
treeab1e3b5e4201fddf045aad8c199e1f2c8d7a12b0 /guides/source
parent1c3bdfcda4ddb23b69bf00e13cc6120b4ff428dc (diff)
downloadrails-ee917493e451e552fef18367f8bcba2f36080685.tar.gz
rails-ee917493e451e552fef18367f8bcba2f36080685.tar.bz2
rails-ee917493e451e552fef18367f8bcba2f36080685.zip
copy edits [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/contributing_to_ruby_on_rails.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md
index 6d63697047..3791467584 100644
--- a/guides/source/contributing_to_ruby_on_rails.md
+++ b/guides/source/contributing_to_ruby_on_rails.md
@@ -205,10 +205,10 @@ TIP: Changes that are cosmetic in nature and do not add anything substantial to
Rails follows a simple set of coding style conventions.
-* Use Ruby >= 1.9 syntax. Prefer `{ a: :b }` over `{ :a => :b }`.
* Two spaces, no tabs (for indentation).
* No trailing whitespace. Blank lines should not have any spaces.
* Indent after private/protected.
+* Use Ruby >= 1.9 syntax for hashes. Prefer `{ a: :b }` over `{ :a => :b }`.
* Prefer `&&`/`||` over `and`/`or`.
* Prefer class << self over self.method for class methods.
* Use `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.