aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-02-21 13:34:22 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-02-21 13:34:22 +0100
commit56e788edb38b402c9b081a05f63ed327fbc82254 (patch)
tree385907eeeea7aa36972b7457330ebde47910cc70
parent661479324d573d419d8e15a1ea257e01856084af (diff)
downloadrails-56e788edb38b402c9b081a05f63ed327fbc82254.tar.gz
rails-56e788edb38b402c9b081a05f63ed327fbc82254.tar.bz2
rails-56e788edb38b402c9b081a05f63ed327fbc82254.zip
[ci skip] Use explicit module namespace in guide
The Engines guide used an inline namespace, `Blorgh::ApplicationController`, which caused problems for users using an explicit module namespace because the `ApplicationController` inherited from wasn't fully qualified. The controller qualification was fixed in 661479324d573d419d8e15a1ea257e01856084af. This ditches the inline namespace and makes the example more consistent with others in the guide.
-rw-r--r--guides/source/engines.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md
index 5065aab6b7..84017d5e13 100644
--- a/guides/source/engines.md
+++ b/guides/source/engines.md
@@ -890,7 +890,9 @@ engine this would be done by changing
`app/controllers/blorgh/application_controller.rb` to look like:
```ruby
-class Blorgh::ApplicationController < ::ApplicationController
+module Blorgh
+ class ApplicationController < ::ApplicationController
+ end
end
```