Skip to content
Browse files

Autoload Rails::Info

  • Loading branch information...
1 parent 14b7452 commit fcc6b12e77e2304a5b6be5c972749e2360dba62a @josh josh committed Mar 20, 2010
View
3 railties/lib/rails.rb
@@ -26,6 +26,9 @@
end
module Rails
+ autoload :Info, 'rails/info'
+ autoload :InfoController, 'rails/info_controller'
+
class << self
def application
@@application ||= nil
View
2 railties/lib/rails/info_controller.rb
@@ -1,5 +1,3 @@
-require 'rails/info'
-
class Rails::InfoController < ActionController::Base
def properties
if consider_all_requests_local? || local_request?
View
2 railties/lib/rails/info_routes.rb
@@ -1,5 +1,3 @@
-require 'rails/info_controller'
-
Rails.application.routes.draw do |map|
match '/rails/info/properties' => "rails/info#properties"
end
View
1 railties/lib/rails/tasks/misc.rake
@@ -15,7 +15,6 @@ end
desc 'Explain the current environment'
task :about do
- require 'rails/info'
puts Rails::Info
end
View
3 railties/test/rails_info_controller_test.rb
@@ -1,9 +1,6 @@
require 'abstract_unit'
require 'action_controller'
-require 'rails/info'
-require 'rails/info_controller'
-
module ActionController
class Base
include ActionController::Testing

0 comments on commit fcc6b12

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