Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActionController::Base#local_request? removed

#5361

In Rails 3, it was moved to the ShowExceptions middleware, and is no longer available in a controller context. Was it considered a public API in Rails 2? I was relying on it in my app, and Rails::InfoController still references it as well.

Reported by John Firebaugh · August 12th, 2010 @ 02:20 AM

State: committed
Milestone: 3.x
Assigned to: Santiago Pastorino Santiago Pastorino
Importance: Low

Activity

  1. John Firebaugh
    John Firebaugh

    $ rails new info_controller

    InfoController::Application.routes.draw do
      match '/info', :to => 'rails/info#properties'
    end
    

    $ rails server -e production

    http://0.0.0.0:3000/info:

    undefined method `local_request?' for #<Rails::InfoController:0x1037241c0>
    

    August 12th, 2010 @ 02:25 AM

  2. Santiago Pastorino
    Santiago Pastorino
    • Milestone set to 3.x
    • State changed from new to open
    • Assigned user set to Santiago Pastorino
    • Importance changed from to Low

    Can you make a patch or failing test?

    August 13th, 2010 @ 12:28 AM

  3. Repository
  4. Repository
  5. Santiago Pastorino
    Santiago Pastorino

    Ouch the message was intended to be Moves local_request? to request.local?

    August 13th, 2010 @ 10:19 PM

  6. Repository