# File lib/file_column_helper.rb, line 57 def url_for_file_column(object_name, method, suffix=nil) object = instance_variable_get("@#{object_name.to_s}") relative_path = object.send("#{method}_relative_path", suffix) return nil unless relative_path url = "" url << @request.relative_url_root.to_s << "/" url << object.send("#{method}_options")[:base_url] << "/" url << relative_path end