Browse files

Merge pull request #8849 from mattdbridges/contributing_to_rails

Adding mention about single-line blocks in Contributing to Rails [ci skip]
  • Loading branch information...
2 parents 2d33d73 + 7342f14 commit a1610f540827dc0e0b1879f07cde427d9c25d500 @carlosantoniodasilva carlosantoniodasilva committed Jan 9, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 guides/source/
1 guides/source/
@@ -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.

0 comments on commit a1610f5

Please sign in to comment.