Sha256: 5a16a51507de286694aee77d36c2470ba531cf30e86fc9d2d1b94aaa2405787d

Contents?: true

Size: 645 Bytes

Versions: 9

Compression:

Stored size: 645 Bytes

Contents

<script>
  <% if Slices::Config.s3_storage? %>
    slices.S3_UPLOADER_DEFAULTS = {
      AWSAccessKeyId        : '<%= Slices::Config.s3_credentials[:access_key_id] %>',
      acl                   : 'public-read',
      policy                : '<%= policy %>',
      signature             : '<%= signature %>',
      success_action_status : '201',
    };

    slices.S3_URL = 'https://<%= Slices::Config.s3_credentials[:bucket] %>.s3.amazonaws.com/';
    slices.S3_TEMPFILE_KEY_PREFIX = '<%= Slices::Config::S3_TEMPFILE_KEY_PREFIX %>';
    slices.fileClass = slices.S3File;
  <% else %>
    slices.fileClass = slices.File;
  <% end %>
</script>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slices-2.0.2 app/views/admin/shared/_asset_storage.html.erb
slices-2.0.1 app/views/admin/shared/_asset_storage.html.erb
slices-2.0.0 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.5 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.4 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.3 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.2 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.1 app/views/admin/shared/_asset_storage.html.erb
slices-1.0.0 app/views/admin/shared/_asset_storage.html.erb