diff --git a/railties/lib/rails/info_controller.rb b/railties/lib/rails/info_controller.rb index 196eeb4a6c..18f13dc095 100644 --- a/railties/lib/rails/info_controller.rb +++ b/railties/lib/rails/info_controller.rb @@ -1,3 +1,5 @@ +require 'rails/info' + class Rails::InfoController < ActionController::Base def properties if consider_all_requests_local? || local_request? diff --git a/railties/lib/rails/info_routes.rb b/railties/lib/rails/info_routes.rb index bd58034d8f..2e4157ea8d 100644 --- a/railties/lib/rails/info_routes.rb +++ b/railties/lib/rails/info_routes.rb @@ -1,3 +1,5 @@ +require 'rails/info_controller' + Rails.application.routes.draw do |map| match '/rails/info/properties' => "rails/info#properties" end