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: 9c08a98939636f393f99798e72a9134ba7f0bd8e
4
- data.tar.gz: b11745ebb7bd0f28c291fd83996cbd14478c9fcb
3
+ metadata.gz: 2dd2a243f75229cf14b7e14553bbebd809bf0aed
4
+ data.tar.gz: 4bb66f879f91a8865a555de68b22546dac6f6fa1
5
5
  SHA512:
6
- metadata.gz: c288e90a750013908678469553f3e720e68fe309de76a0189f2c607986681bb75d78d569fea72649e83f9901f9c53cc26f948ee1dbe3fe5da53d553ebafa47bc
7
- data.tar.gz: 048b382b2c637e3e8d9daa49b528a99027c90a9a584e62143ec37037aa182ae9edc0c04ef942538886f689abc987ab5e80b34e4ebf91ae828550dca13d2685c2
6
+ metadata.gz: b5c8a80fd844be4c6ac1c551ee73e695996e1caa9251398daca57418ee0b95d56acf3bf0410e12a4bd3b7b731260ae0b2443b57a2871678e3c16f5187c12e91d
7
+ data.tar.gz: ab0a27e2a9465bff652240d7799d0f46db8d677707669c82af97700ab46a25d5878bd3ac0b344e1c527405607e5c300af6242bf77e5ca97f88a895d7708f01f6
@@ -10,4 +10,8 @@ class Ecm::Downloads::Backend::DownloadCategoriesController < Itsf::Backend::Res
10
10
  .require(:ecm_downloads_download_category)
11
11
  .permit(:name, :description, :locale)
12
12
  end
13
+
14
+ def load_resource
15
+ load_scope.friendly.find(params[:id])
16
+ end
13
17
  end
@@ -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
@@ -0,0 +1,12 @@
1
+ en:
2
+ classes:
3
+ ecm/downloads/backend/engine: 'Downloads'
4
+ ecm:
5
+ downloads:
6
+ backend:
7
+ downloads:
8
+ table:
9
+ download: 'Download'
10
+ routes:
11
+ mount:
12
+ ecm_downloads_backend: '/backend/downloads'
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Downloads
3
3
  module Backend
4
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.0.2'.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.1
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-02-09 00:00:00.000000000 Z
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