diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2014-12-04 19:40:10 +0800 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2014-12-04 19:40:10 +0800 |
commit | 3e3c96952f720e30d588a4df6c9632898846b4f2 (patch) | |
tree | 0f1d7a9093bafa802270ee049c1a60deb4206827 /guides | |
parent | 21cff02a9c4add719ed7cef0d92793fd2f624c0f (diff) | |
parent | 872b6cc986af437fda117b49bb539f40927f3f49 (diff) | |
download | rails-3e3c96952f720e30d588a4df6c9632898846b4f2.tar.gz rails-3e3c96952f720e30d588a4df6c9632898846b4f2.tar.bz2 rails-3e3c96952f720e30d588a4df6c9632898846b4f2.zip |
Merge pull request #17909 from sergey-alekseev/doc-change
remove misleading class [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/contributing_to_ruby_on_rails.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md index 4eb360cc7a..8e7007d34a 100644 --- a/guides/source/contributing_to_ruby_on_rails.md +++ b/guides/source/contributing_to_ruby_on_rails.md @@ -205,7 +205,7 @@ Rails follows a simple set of coding style conventions: * 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. -* Use `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`. +* 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. * Prefer `method { do_stuff }` instead of `method{do_stuff}` for single-line blocks. |