1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add missing backticks for class methods

This commit is contained in:
Leonardo Tegon 2019-10-07 18:03:06 -03:00
parent d337748169
commit 7f303050c5
No known key found for this signature in database
GPG key ID: A2A555407E152BD3

View file

@ -250,7 +250,7 @@ Rails follows a simple set of coding style conventions:
* Indent and no blank line after private/protected.
* Use Ruby >= 1.9 syntax for hashes. Prefer `{ a: :b }` over `{ :a => :b }`.
* Prefer `&&`/`||` over `and`/`or`.
* Prefer class << self over self.method for class methods.
* Prefer `class << self` over `self.method` for class methods.
* Use `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`.