mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
There is no need to make isolated? method with bang-bang, just alias isolated
This commit is contained in:
parent
dc1250265c
commit
ef4afed81c
1 changed files with 1 additions and 4 deletions
|
@ -329,6 +329,7 @@ module Rails
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
attr_accessor :called_from, :isolated
|
attr_accessor :called_from, :isolated
|
||||||
|
alias :isolated? :isolated
|
||||||
alias :engine_name :railtie_name
|
alias :engine_name :railtie_name
|
||||||
|
|
||||||
def inherited(base)
|
def inherited(base)
|
||||||
|
@ -368,10 +369,6 @@ module Rails
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def isolated?
|
|
||||||
!!isolated
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
delegate :middleware, :root, :paths, :to => :config
|
delegate :middleware, :root, :paths, :to => :config
|
||||||
|
|
Loading…
Reference in a new issue