Skip to content
This repository
Browse code

There is no need to make isolated? method with bang-bang, just alias …

…isolated
  • Loading branch information...
commit ef4afed81cab133ac511944d660e8c0667c43075 1 parent dc12502
Piotr Sarnacki authored November 14, 2010 josevalim committed November 16, 2010

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. 5  railties/lib/rails/engine.rb
5  railties/lib/rails/engine.rb
@@ -329,6 +329,7 @@ class Engine < Railtie
329 329
 
330 330
     class << self
331 331
       attr_accessor :called_from, :isolated
  332
+      alias :isolated? :isolated
332 333
       alias :engine_name :railtie_name
333 334
 
334 335
       def inherited(base)
@@ -368,10 +369,6 @@ def isolate_namespace(mod)
368 369
          end
369 370
         end
370 371
       end
371  
-
372  
-      def isolated?
373  
-        !!isolated
374  
-      end
375 372
     end
376 373
 
377 374
     delegate :middleware, :root, :paths, :to => :config

0 notes on commit ef4afed

Please sign in to comment.
Something went wrong with that request. Please try again.