Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use global namespace Rails
  • Loading branch information
Stefan Sprenger committed May 26, 2011
1 parent 1186293 commit 4686ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
module <%= camelized %> module <%= camelized %>
class Engine < Rails::Engine class Engine < ::Rails::Engine
<% if mountable? -%> <% if mountable? -%>
isolate_namespace <%= camelized %> isolate_namespace <%= camelized %>
<% end -%> <% end -%>
Expand Down
2 changes: 1 addition & 1 deletion railties/test/generators/plugin_new_generator_test.rb
Expand Up @@ -148,7 +148,7 @@ def test_creating_engine_in_full_mode
assert_file "app/views" assert_file "app/views"
assert_file "app/helpers" assert_file "app/helpers"
assert_file "config/routes.rb", /Rails.application.routes.draw do/ assert_file "config/routes.rb", /Rails.application.routes.draw do/
assert_file "lib/bukkits/engine.rb", /module Bukkits\n class Engine < Rails::Engine\n end\nend/ assert_file "lib/bukkits/engine.rb", /module Bukkits\n class Engine < ::Rails::Engine\n end\nend/
assert_file "lib/bukkits.rb", /require "bukkits\/engine"/ assert_file "lib/bukkits.rb", /require "bukkits\/engine"/
end end


Expand Down

0 comments on commit 4686ace

Please sign in to comment.