diff options
author | Matt Bridges <mbridges.91@gmail.com> | 2013-01-09 10:04:09 -0600 |
---|---|---|
committer | Matt Bridges <mbridges.91@gmail.com> | 2013-01-09 10:09:06 -0600 |
commit | 7342f14c943271c5c5b78213c764aa6a3fec4016 (patch) | |
tree | 8e75c6c9a9c39d96e3c63e98e8561c213c874029 /guides/source | |
parent | 2d33d7393d328b757190c5d4a74f64eaaa665f52 (diff) | |
download | rails-7342f14c943271c5c5b78213c764aa6a3fec4016.tar.gz rails-7342f14c943271c5c5b78213c764aa6a3fec4016.tar.bz2 rails-7342f14c943271c5c5b78213c764aa6a3fec4016.zip |
adding small mention one 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. |