diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-08-03 21:25:50 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:11 +0200 |
commit | a7c6fe4c2a577bd7e9871aa4746d70c0984325db (patch) | |
tree | 429eedc4627e577fb7d29273a8e888130b42a00b /railties/lib/rails | |
parent | 79bd92b7833d52b74f50259cf8a21f9b05f3e9e3 (diff) | |
download | rails-a7c6fe4c2a577bd7e9871aa4746d70c0984325db.tar.gz rails-a7c6fe4c2a577bd7e9871aa4746d70c0984325db.tar.bz2 rails-a7c6fe4c2a577bd7e9871aa4746d70c0984325db.zip |
Rename isolated_engine_for to namespace
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/engine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 7f53e2dc72..13629e0de3 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -200,11 +200,11 @@ module Rails @endpoint end - def isolated_engine_for(mod) - _engine = self + def namespace(mod) + _railtie = self mod.singleton_class.instance_eval do define_method(:_railtie) do - _engine + _railtie end end end |