auto_define_scope 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7315e9b476d285d47db966be0c7898ab40ddde278c620d178440b73b8b199511
|
|
4
|
+
data.tar.gz: 8aa08fd8185b21445d2f22cdf1469db97fc15fda6b7156baceff8ab902675836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f3441c662bd463b521ac096ad80859ba57dfb2f74f09b218cbcaa7d8e53fa8efb7dbda3a526b362b9afdf32d47a9fecdfa7ac5afcbb64dc681399737de1ea3d
|
|
7
|
+
data.tar.gz: d88cb4a4b01d4e19ec092444332c2536d30fc604615b46a30c6bb4ffbe83b18532f95bad243422365e485a1a96d4dfcf761e317d1479d23da4a9c88fbeb4b364
|
|
@@ -14,8 +14,8 @@ module AutoDefineScope
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def scopes options = { search: [], with: [] }
|
|
17
|
-
search_columns options[:search]
|
|
18
|
-
with_columns options[:with]
|
|
17
|
+
search_columns options[:search] if options[:search]
|
|
18
|
+
with_columns options[:with] if options[:with]
|
|
19
19
|
filterrific available_filters: @auto_define_scopes if @auto_define_scopes.present?
|
|
20
20
|
end
|
|
21
21
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: auto_define_scope
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tinyfeng.hou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-12-
|
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|