Sha256: a1692af7ce0f3a0c5229600dbe6f778b6f4266b02bfcfa8fbf9b662429c03e47
Contents?: true
Size: 465 Bytes
Versions: 8
Compression:
Stored size: 465 Bytes
Contents
module CarrierWave module Uploader module 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(public), '') end end alias_method :to_s, :url end # Url end # Uploader end # CarrierWave
Version data entries
8 entries across 8 versions & 2 rubygems