ecm_downloads2_backend 1.1.1 → 2.0.0

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: 95bff8b59fe88b4f5a84cc335c8e5d5f9803fe45
4
- data.tar.gz: 3007a1fa811d395136f6e14a3d7d816fc04efa0b
3
+ metadata.gz: b4cb70d94e836675551441990b982a0c4ecda3e8
4
+ data.tar.gz: 0df506fcdc7457bfd417cd283fb5b6e96bd77ffa
5
5
  SHA512:
6
- metadata.gz: fbb52b73562b7651b39cf223b7480392501f66487addc29e32dd27b5d4c118d95a306ddef82e2240b208ccc004f8b9bdc38007e9a2e8833bd47a69b68d053c6b
7
- data.tar.gz: 16921908a353f31cbdd7631610e03b2d4abcf9473f48bbb596f2ef0335dff714fe1944db111df79a025044e18267461b21f0bbdf3457e746323901c80ee14f21
6
+ metadata.gz: 6227439e201a6c703e5bc94941f0dc8178692fb1cd8b26835343bdb49148a6cc42faef0dfee6ab4d013f27fa5b6bd54ba973326768275f0c64b29486f26d1bb3
7
+ data.tar.gz: 34ecc8f5757b1c29c60c2e591d85d8f0a1d85d49a6a69865ebe5510c5af478dafb075108ab1ea81c45bf81b581a6149c32bdae5ee8c92c798ebc5b53fbc102a1
@@ -7,7 +7,7 @@ class Ecm::Downloads::Backend::DownloadCategoriesController < Itsf::Backend::Res
7
7
 
8
8
  def permitted_params
9
9
  params
10
- .require(:ecm_downloads_download_category)
10
+ .require(:download_category)
11
11
  .permit(:name, :description, :locale)
12
12
  end
13
13
 
@@ -12,12 +12,12 @@ class Ecm::Downloads::Backend::DownloadsController < Itsf::Backend::Resource::Ba
12
12
 
13
13
  def permitted_params
14
14
  params
15
- .require(:ecm_downloads_download)
16
- .permit(:ecm_downloads_download_category_id, :asset, :name, :description, :published)
15
+ .require(:download)
16
+ .permit(:download_category_id, :asset, :name, :description, :published)
17
17
  end
18
18
 
19
19
  def collection_scope
20
- @q = collection_scope_with_search_scopes(resource_class.includes(:ecm_downloads_download_category)).ransack(params[:q])
20
+ @q = collection_scope_with_search_scopes(resource_class.includes(:download_category)).ransack(params[:q])
21
21
  @q.result(distinct: true)
22
22
  end
23
23
 
@@ -1,6 +1,6 @@
1
1
  = table.column :locale
2
2
  = table.column :name, class: 'truncate-chars truncate-chars-30'
3
3
  = table.column :description, class: 'truncate-chars truncate-chars-30'
4
- = table.column :ecm_downloads_downloads_count
4
+ = table.column :downloads_count
5
5
  = table.association :parent
6
6
  = table.timestamps
@@ -1,5 +1,5 @@
1
1
  .well
2
- = form.association :ecm_downloads_download_category
2
+ = form.association :download_category
3
3
 
4
4
  .well
5
5
  = form.input :asset
@@ -1,4 +1,4 @@
1
- = table.association :ecm_downloads_download_category, url: ->(category) { download_category_path(category) }
1
+ = table.association :download_category, url: ->(category) { download_category_path(category) }
2
2
  = table.column :name, class: 'truncate-chars truncate-chars-30'
3
3
  = table.column(:published, class: 'table-data-centered') do |download|
4
4
  - download.published? ? '<span class="label label-success"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></span>'.html_safe : '<span class="label label-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></span>'.html_safe
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Downloads
3
3
  module Backend
4
- VERSION = '1.1.1'.freeze
4
+ VERSION = '2.0.0'.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.1.1
4
+ version: 2.0.0
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: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails