mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rails.application is set anyway, we don't need to set it manually, this was purpose of different behavior in tests and in application
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
00aa13bc0e
commit
135d6164c5
2 changed files with 1 additions and 3 deletions
|
@ -46,7 +46,7 @@ module Rails
|
|||
|
||||
def namespace
|
||||
@namespace ||= if defined?(Rails) && Rails.application
|
||||
Rails.application.parents.detect { |n| n.respond_to?(:_railtie) }
|
||||
Rails.application.class.parents.detect { |n| n.respond_to?(:_railtie) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -16,5 +16,3 @@ module TestApp
|
|||
config.root = File.dirname(__FILE__)
|
||||
end
|
||||
end
|
||||
|
||||
Rails.application = TestApp::Application
|
||||
|
|
Loading…
Reference in a new issue