1
0
Fork 0
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:
Piotr Sarnacki 2010-09-24 23:39:15 +02:00 committed by José Valim
parent 00aa13bc0e
commit 135d6164c5
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -16,5 +16,3 @@ module TestApp
config.root = File.dirname(__FILE__)
end
end
Rails.application = TestApp::Application