1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Require info controller from info routes

This commit is contained in:
Joshua Peek 2010-03-20 13:33:25 -05:00
parent f38e89cfba
commit 14b7452c57
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
require 'rails/info'
class Rails::InfoController < ActionController::Base class Rails::InfoController < ActionController::Base
def properties def properties
if consider_all_requests_local? || local_request? if consider_all_requests_local? || local_request?

View file

@ -1,3 +1,5 @@
require 'rails/info_controller'
Rails.application.routes.draw do |map| Rails.application.routes.draw do |map|
match '/rails/info/properties' => "rails/info#properties" match '/rails/info/properties' => "rails/info#properties"
end end