Sha256: d0082f68c5e3b1e4b11b0040abb0dca621a60a0600299c3beb460dbda11d41b1

Contents?: true

Size: 204 Bytes

Versions: 14

Compression:

Stored size: 204 Bytes

Contents

class EditableFileUploader < ::CarrierWave::Uploader::Base

  def store_dir
    "sites/#{model.page.site_id}/pages/#{model.page.id}/files"
  end

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

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/uploaders/editable_file_uploader.rb
locomotive_cms-1.0.0.beta app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta12 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta11 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta10 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta9 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta8 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta7 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta5 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta4 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta3 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta2 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4.beta1 app/uploaders/editable_file_uploader.rb
locomotive_cms-0.0.4 app/uploaders/editable_file_uploader.rb