ecm_downloads2_backend 1.1.0 → 1.1.1

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: 32e6bae624ef9e46111886bf81c01ce0fb8f923f
4
- data.tar.gz: 21b8486a5c67930dc7d97e7138f358e2e8a50810
3
+ metadata.gz: 95bff8b59fe88b4f5a84cc335c8e5d5f9803fe45
4
+ data.tar.gz: 3007a1fa811d395136f6e14a3d7d816fc04efa0b
5
5
  SHA512:
6
- metadata.gz: 3e7852c7826ad2a03b30fd9cffa7a50770aed470e49bab220c603be580ced9eedeb6619a5c057f7f06ef38774bb17b0b7d5fa5f7b5905d8b8a9a59a4db5fae0d
7
- data.tar.gz: 440022cdec7cb4e3f08d7ef4b921f39f8e9fab0bf39293691ec8834abfe677bfbf9c72871a0fa0ac96c59143324ecfb4082d7f0072f8562677f9494e1bb63032
6
+ metadata.gz: fbb52b73562b7651b39cf223b7480392501f66487addc29e32dd27b5d4c118d95a306ddef82e2240b208ccc004f8b9bdc38007e9a2e8833bd47a69b68d053c6b
7
+ data.tar.gz: 16921908a353f31cbdd7631610e03b2d4abcf9473f48bbb596f2ef0335dff714fe1944db111df79a025044e18267461b21f0bbdf3457e746323901c80ee14f21
@@ -17,7 +17,8 @@ class Ecm::Downloads::Backend::DownloadsController < Itsf::Backend::Resource::Ba
17
17
  end
18
18
 
19
19
  def collection_scope
20
- resource_class.includes(:ecm_downloads_download_category)
20
+ @q = collection_scope_with_search_scopes(resource_class.includes(:ecm_downloads_download_category)).ransack(params[:q])
21
+ @q.result(distinct: true)
21
22
  end
22
23
 
23
24
  def load_resource
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Downloads
3
3
  module Backend
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.1.1'.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.0
4
+ version: 1.1.1
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-01-21 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails