From 56e788edb38b402c9b081a05f63ed327fbc82254 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sat, 21 Feb 2015 13:34:22 +0100 Subject: [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. --- guides/source/engines.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guides/source') 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 ``` -- cgit v1.2.3