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:
parent
f38e89cfba
commit
14b7452c57
2 changed files with 4 additions and 0 deletions
|
@ -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?
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue