Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a1610f540827dc0e0b1879f07cde427d9c25d500 2 parents 2d33d73 + 7342f14
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  guides/source/contributing_to_ruby_on_rails.md
View
1  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.
Please sign in to comment.
Something went wrong with that request. Please try again.