ecm_downloads2_backend 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dd2a243f75229cf14b7e14553bbebd809bf0aed
4
- data.tar.gz: 4bb66f879f91a8865a555de68b22546dac6f6fa1
3
+ metadata.gz: 81f3aa85cf1748c4d13329426232858407d557e1
4
+ data.tar.gz: 6d5a2fe76738f0f111fb76970303684781073b0b
5
5
  SHA512:
6
- metadata.gz: b5c8a80fd844be4c6ac1c551ee73e695996e1caa9251398daca57418ee0b95d56acf3bf0410e12a4bd3b7b731260ae0b2443b57a2871678e3c16f5187c12e91d
7
- data.tar.gz: ab0a27e2a9465bff652240d7799d0f46db8d677707669c82af97700ab46a25d5878bd3ac0b344e1c527405607e5c300af6242bf77e5ca97f88a895d7708f01f6
6
+ metadata.gz: 82cdc9ad1e755c6e9d94a177239224bfa583fe509b6dc839be54d234c2e2a161a210208bd919bd31ff030ab95d872b691381235c2234b540479d0b047e3e8f0c
7
+ data.tar.gz: 8201ee3d17490f3389a467b8798f5f483a029a34951ae33ba5268388df430744bd560998ff6006ea3ada119cc28cb1c73f4594415b13a8eaa2be179c71dbe874
@@ -3,6 +3,11 @@ class Ecm::Downloads::Backend::DownloadsController < Itsf::Backend::Resource::Ba
3
3
  Ecm::Downloads::Download
4
4
  end
5
5
 
6
+ def download
7
+ @download = Ecm::Downloads::Download.friendly.find(params[:id]).decorate
8
+ redirect_to @download.asset.expiring_url(100)
9
+ end
10
+
6
11
  private
7
12
 
8
13
  def permitted_params
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Downloads
3
3
  module Backend
4
- VERSION = '1.0.2'.freeze
4
+ VERSION = '1.0.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_downloads2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails