aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-25 20:05:14 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-10-25 20:06:16 -0500
commit65be1a0e7a93b2f4e308739d55516be0c58543df (patch)
tree89f4de0eb572a386e13396f0fb4544efa3397c92 /guides/source
parentcc5dfccddab6b08b924799cca8be8edd17d479af (diff)
downloadrails-65be1a0e7a93b2f4e308739d55516be0c58543df.tar.gz
rails-65be1a0e7a93b2f4e308739d55516be0c58543df.tar.bz2
rails-65be1a0e7a93b2f4e308739d55516be0c58543df.zip
encourage use of Ruby 1.9 syntax [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/contributing_to_ruby_on_rails.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md
index 6e843062ec..6d63697047 100644
--- a/guides/source/contributing_to_ruby_on_rails.md
+++ b/guides/source/contributing_to_ruby_on_rails.md
@@ -205,6 +205,7 @@ 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.