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.

Changeset [bae691f61ab8cf4a59adaee6406855e11d009c74] by Carlhuda

Revision bae691f61ab8cf4a59adaee6406855e11d009c74, committed by Carlhuda · February 26th, 2010 @ 11:20 PM

Change the API for setting global options for #url_for to self.url_options = { ... }

This attr_accessor can be set in a before filter or in the action itself.
Overwriting default_url_options still works but will output a deprecation notice.

http://github.com/rails/rails/commit/bae691f61ab8cf4a59adaee6406855...

4 changed files

  • M actionpack/lib/action_controller/metal/url_for.rb
  • M actionpack/lib/action_controller/test_case.rb
  • M actionpack/lib/action_dispatch/routing/url_for.rb
  • M actionpack/lib/action_dispatch/testing/integration.rb