Permalink
Browse files

Fixed Rails 2.3 issue with accessing request.relative_url_root it sho…

…uld be ActionController::Base.relative_url_root
  • Loading branch information...
1 parent 88ebc6d commit 05551ba8f1359b5ff3344754075de089fb897b6b Edwin Moss committed Dec 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/file_column_helper.rb
@@ -76,7 +76,7 @@ def url_for_file_column(object, method, options=nil)
return nil unless relative_path
url = ""
- url << request.relative_url_root.to_s if absolute
+ url << ActionController::Base.relative_url_root.to_s if absolute
url << "/"
url << object.send("#{method}_options")[:base_url] << "/"
url << relative_path

0 comments on commit 05551ba

Please sign in to comment.