Sha256: 768ae6e5e6cdfa7a0786355813ccfcf5e5da2a56804bfb32e2cb88f8197fb189

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

# Set correct paths
module CustomFields
  module Types
    module File
      class FileUploader < ::CarrierWave::Uploader::Base

        def store_dir
          puts
          "sites/#{model.site_id}/contents/#{model.class.model_name.underscore}/#{model.id}/files"
        end

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

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta5 lib/locomotive/custom_fields.rb
locomotive_cms-0.0.4.beta4 lib/locomotive/custom_fields.rb
locomotive_cms-0.0.4.beta3 lib/locomotive/custom_fields.rb
locomotive_cms-0.0.4.beta2 lib/locomotive/custom_fields.rb
locomotive_cms-0.0.4.beta1 lib/locomotive/custom_fields.rb
locomotive_cms-0.0.4 lib/locomotive/custom_fields.rb