Permalink
Browse files

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

…isolated
  • Loading branch information...
1 parent dc12502 commit ef4afed81cab133ac511944d660e8c0667c43075 @drogus drogus committed with josevalim Nov 15, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 railties/lib/rails/engine.rb
@@ -329,6 +329,7 @@ class Engine < Railtie
class << self
attr_accessor :called_from, :isolated
+ alias :isolated? :isolated
alias :engine_name :railtie_name
def inherited(base)
@@ -368,10 +369,6 @@ def isolate_namespace(mod)
end
end
end
-
- def isolated?
- !!isolated
- end
end
delegate :middleware, :root, :paths, :to => :config

0 comments on commit ef4afed

Please sign in to comment.