mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
encourage use of Ruby 1.9 syntax [ci skip]
This commit is contained in:
parent
cc5dfccdda
commit
65be1a0e7a
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue