aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-04-04 02:43:12 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-04-04 02:43:12 +0530
commit4ac719686c0075b6ad6896becfe0f058efdb97ff (patch)
tree6255a8fc483436dc0fc89c0a2bc2755a51ecc329 /railties/lib/rails/engine.rb
parent4c76f6894889e8e3f5cc3722d928954c79422542 (diff)
parent3e24e9ebc22f96f9124d3a5d1c83b93c1bea937d (diff)
downloadrails-4ac719686c0075b6ad6896becfe0f058efdb97ff.tar.gz
rails-4ac719686c0075b6ad6896becfe0f058efdb97ff.tar.bz2
rails-4ac719686c0075b6ad6896becfe0f058efdb97ff.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r--railties/lib/rails/engine.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb
index 4fc23fe277..ee265366ff 100644
--- a/railties/lib/rails/engine.rb
+++ b/railties/lib/rails/engine.rb
@@ -360,11 +360,11 @@ module Rails
def isolate_namespace(mod)
engine_name(generate_railtie_name(mod))
- name = engine_name
- self.routes.default_scope = {:module => name}
+ self.routes.default_scope = { :module => ActiveSupport::Inflector.underscore(mod.name) }
self.isolated = true
unless mod.respond_to?(:_railtie)
+ name = engine_name
_railtie = self
mod.singleton_class.instance_eval do
define_method(:_railtie) do