ecm_downloads2_backend 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd2a243f75229cf14b7e14553bbebd809bf0aed
|
4
|
+
data.tar.gz: 4bb66f879f91a8865a555de68b22546dac6f6fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c8a80fd844be4c6ac1c551ee73e695996e1caa9251398daca57418ee0b95d56acf3bf0410e12a4bd3b7b731260ae0b2443b57a2871678e3c16f5187c12e91d
|
7
|
+
data.tar.gz: ab0a27e2a9465bff652240d7799d0f46db8d677707669c82af97700ab46a25d5878bd3ac0b344e1c527405607e5c300af6242bf77e5ca97f88a895d7708f01f6
|
@@ -5,13 +5,17 @@ class Ecm::Downloads::Backend::DownloadsController < Itsf::Backend::Resource::Ba
|
|
5
5
|
|
6
6
|
private
|
7
7
|
|
8
|
-
def collection_scope
|
9
|
-
resource_class.includes(:ecm_downloads_download_category)
|
10
|
-
end
|
11
|
-
|
12
8
|
def permitted_params
|
13
9
|
params
|
14
10
|
.require(:ecm_downloads_download)
|
15
11
|
.permit(:ecm_downloads_download_category_id, :asset, :name, :description, :published)
|
16
12
|
end
|
13
|
+
|
14
|
+
def collection_scope
|
15
|
+
resource_class.includes(:ecm_downloads_download_category)
|
16
|
+
end
|
17
|
+
|
18
|
+
def load_resource
|
19
|
+
load_scope.friendly.find(params[:id])
|
20
|
+
end
|
17
21
|
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.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- app/views/ecm/downloads/backend/downloads/_table.html.haml
|
223
223
|
- app/views/layouts/ecm/downloads/backend/application.html.erb
|
224
224
|
- config/locales/de.yml
|
225
|
+
- config/locales/en.yml
|
225
226
|
- config/rbac.yml
|
226
227
|
- config/routes.rb
|
227
228
|
- lib/ecm/downloads/backend.rb
|