Sha256: 5532bbfedb3e92807380f6717300d45aa76c8418e563e658d4e9fcdeec55c2f1

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

module CarrierWave
  module Uploader
    class Base
  
      def to_liquid
        {
          :url      => self.url,
          :filename => (File.basename(self.url) rescue ''),
          :size     => self.size
        }.stringify_keys
      end
  
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 lib/locomotive/carrierwave/base.rb
locomotive_cms-0.0.3.1 lib/locomotive/carrierwave/base.rb
locomotive_cms-0.0.2.9 lib/locomotive/carrierwave/base.rb
locomotive_cms-0.0.2.8 lib/locomotive/carrierwave/base.rb