lib/carrierwave/uploader/url.rb
##
# === Returns
#
# [String] the location where this file is accessible via a url
#
Returns
[String] the location where this file is accessible via a url
Returns [ String ] the location where this file is accessible via a url
def url
        if file.respond_to?(:url) and not file.url.blank?
          file.url
        elsif current_path
          File.expand_path(current_path).gsub(File.expand_path(root), '')
        end
      end
def url if file . respond_to? ( :url ) and not file . url . blank? file . url elsif current_path File . expand_path ( current_path ) . gsub ( File . expand_path ( root ) , '' ) end end
Returns
[String] the location where this file is accessible via a url
Returns [ String ] the location where this file is accessible via a url