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

wrap methods in backticks [ci skip]

This commit is contained in:
Anton Kalyaev 2014-04-19 14:19:53 +04:00
parent 5f72fc6af8
commit 5facaca7d8

View file

@ -587,7 +587,7 @@ def run_initializers(group=:default, *args)
end end
``` ```
The run_initializers code itself is tricky. What Rails is doing here is The `run_initializers` code itself is tricky. What Rails is doing here is
traversing all the class ancestors looking for those that respond to an traversing all the class ancestors looking for those that respond to an
`initializers` method. It then sorts the ancestors by name, and runs them. `initializers` method. It then sorts the ancestors by name, and runs them.
For example, the `Engine` class will make all the engines available by For example, the `Engine` class will make all the engines available by
@ -642,7 +642,7 @@ def build_app(app)
end end
``` ```
Remember, `build_app` was called (by wrapped_app) in the last line of `Server#start`. Remember, `build_app` was called (by `wrapped_app`) in the last line of `Server#start`.
Here's how it looked like when we left: Here's how it looked like when we left:
```ruby ```ruby