From ef4afed81cab133ac511944d660e8c0667c43075 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Sun, 14 Nov 2010 19:32:43 -0600 Subject: [PATCH] There is no need to make isolated? method with bang-bang, just alias isolated --- railties/lib/rails/engine.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 466a31c2a0..62fb781c19 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -329,6 +329,7 @@ module Rails class << self attr_accessor :called_from, :isolated + alias :isolated? :isolated alias :engine_name :railtie_name def inherited(base) @@ -368,10 +369,6 @@ module Rails end end end - - def isolated? - !!isolated - end end delegate :middleware, :root, :paths, :to => :config