[PULL] Rails 2.1 uses new method to set relative_url_root
Reported by Chris Cherry | October 17th, 2008 @ 02:46 PM | in 1.1
Please pull from seriph/thin
This patch fixes a warning when using a prefix with Rails 2.1.1 or greater.
DEPRECATION WARNING: ActionController::AbstractRequest.relative_url_root= has been renamed.You can now set it with config.action_controller.relative_url_root= See http://www.rubyonrails.org/deprecation for details. (called from load_application at /Library/Ruby/Gems/1.8/gems/thin-1.0.0/lib/rack/adapter/rails.rb:34)
Although this warning says it's a "deprecation warning" it appears to break the prefix functionality entirely! This fix also supports the older rails method at the same time.
(If you look on that github commit, the author and commiter are actually both me but I changed my user.email setting so it got confused, sorry about that.)
Comments and changes to this ticket
-
macournoyer October 21st, 2008 @ 11:20 PM
- → State changed from new to resolved
(from [4d224bd3fe0824387da3cbb5390a02a8bd775c28]) Add CHANGELOG entry for last merge [#85 state:resolved] http://github.com/macournoyer/th...
-
macournoyer October 21st, 2008 @ 11:29 PM
- → Milestone changed from Future to 1.1
Thx for the patch Chris!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
