Sha256: 495c1e6847b7a8e538b727315c86e4b79cad48e6e8a40002cfafb94efdc31bf6

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

# Set correct paths
module CustomFields
  module Types
    module File
      class FileUploader < ::CarrierWave::Uploader::Base
        
        def store_dir
          "sites/#{model.content_type.site_id}/contents/#{model.id}/files"
        end

        def cache_dir
          "#{Rails.root}/tmp/uploads"
        end
        
      end    
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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