diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-09 08:11:55 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-09 08:11:55 -0800 |
commit | a1610f540827dc0e0b1879f07cde427d9c25d500 (patch) | |
tree | 8e75c6c9a9c39d96e3c63e98e8561c213c874029 /guides/source | |
parent | 2d33d7393d328b757190c5d4a74f64eaaa665f52 (diff) | |
parent | 7342f14c943271c5c5b78213c764aa6a3fec4016 (diff) | |
download | rails-a1610f540827dc0e0b1879f07cde427d9c25d500.tar.gz rails-a1610f540827dc0e0b1879f07cde427d9c25d500.tar.bz2 rails-a1610f540827dc0e0b1879f07cde427d9c25d500.zip |
Merge pull request #8849 from mattdbridges/contributing_to_rails
Adding mention about single-line blocks in Contributing to Rails [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/contributing_to_ruby_on_rails.md | 1 |
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 7c5a472971..baef620c6c 100644 --- a/guides/source/contributing_to_ruby_on_rails.md +++ b/guides/source/contributing_to_ruby_on_rails.md @@ -216,6 +216,7 @@ Rails follows a simple set of coding style conventions: * Use `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`. * Use `a = b` and not `a=b`. * Use assert_not methods instead of refute. +* Prefer `method { do_stuff }` instead of `method{do_stuff}` for single-line blocks. * Follow the conventions in the source you see used already. The above are guidelines — please use your best judgment in using them. |