Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote branch 'edwinmoss/master'

  • Loading branch information...
commit cb5b45e1dec56f4b1c8dbe77a78aba6863116524 2 parents fbac0a6 + 05551ba
@tekin authored
Showing with 1 addition and 2 deletions.
  1. +0 −1  init.rb
  2. +1 −1  lib/file_column_helper.rb
View
1  init.rb
@@ -6,7 +6,6 @@
require 'file_compat'
require 'file_column_helper'
require 'validations'
-require 'test_case'
ActiveRecord::Base.send(:include, FileColumn)
ActionView::Base.send(:include, FileColumnHelper)
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.