mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add note on the contributing guide to not use the refute methods
This commit is contained in:
parent
5294ad82c6
commit
cf4afc4d11
1 changed files with 3 additions and 2 deletions
|
@ -214,7 +214,8 @@ Rails follows a simple set of coding style conventions:
|
||||||
* Prefer `&&`/`||` over `and`/`or`.
|
* Prefer `&&`/`||` over `and`/`or`.
|
||||||
* Prefer class << self over self.method for class methods.
|
* Prefer class << self over self.method for class methods.
|
||||||
* Use `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
|
* Use `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
|
||||||
* Use a = b and not a=b.
|
* Use `a = b` and not `a=b`.
|
||||||
|
* Use assert_not methods instead of refute.
|
||||||
* Follow the conventions in the source you see used already.
|
* Follow the conventions in the source you see used already.
|
||||||
|
|
||||||
The above are guidelines — please use your best judgment in using them.
|
The above are guidelines — please use your best judgment in using them.
|
||||||
|
|
Loading…
Reference in a new issue