Use isolate_namespace
Andrew Kane
committed Apr 28, 2014
commit 247fbf472dd2047a47ec47f5f42aac2d3aac82a0
Showing 2
changed files with
2 additions
and 3 deletions
config/routes.rb
+1
-3
| @@ | @@ -3,7 +3,5 @@ Rails.application.routes.draw do |
| end | |
| Ahoy::Engine.routes.draw do | |
| - | scope module: "ahoy" do |
| - | resources :visits, only: [:create] |
| - | end |
| + | resources :visits, only: [:create] |
| end | |
ahoy/engine.rb b/lib/ahoy/engine.rb
+1
-0
| @@ | @@ -1,4 +1,5 @@ |
| module Ahoy | |
| class Engine < ::Rails::Engine | |
| + | isolate_namespace Ahoy |
| end | |
| end | |