diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-31 13:55:47 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-31 13:58:52 -0300 |
commit | cf4afc4d11556609802f640135cc7715e4a6a9fe (patch) | |
tree | fd50b9a5b79cf2e3cd508032aec320c0280b5b99 /guides/source | |
parent | 5294ad82c6096edba06f4111325d6b0e6845d9f0 (diff) | |
download | rails-cf4afc4d11556609802f640135cc7715e4a6a9fe.tar.gz rails-cf4afc4d11556609802f640135cc7715e4a6a9fe.tar.bz2 rails-cf4afc4d11556609802f640135cc7715e4a6a9fe.zip |
Add note on the contributing guide to not use the refute methods
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/contributing_to_ruby_on_rails.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md index ce2a5a4902..7c5a472971 100644 --- a/guides/source/contributing_to_ruby_on_rails.md +++ b/guides/source/contributing_to_ruby_on_rails.md @@ -214,7 +214,8 @@ Rails follows a simple set of coding style conventions: * Prefer `&&`/`||` over `and`/`or`. * 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 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. The above are guidelines — please use your best judgment in using them. @@ -403,7 +404,7 @@ following: ```bash $ git fetch upstream -$ git checkout my_pull_request +$ git checkout my_pull_request $ git rebase upstream/master $ git rebase -i |