simplec 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/simplec/page.rb +3 -0
- data/lib/simplec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e1f58d4c9b9f14e5f5b351649420083c35e457
|
4
|
+
data.tar.gz: f5242acb988463f804efdb1b9707cfd8a1c1011b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449575640f16da976384986804fc3906cbd5ce3558a1b3928d8ebefb05ae0f9a4b8e34473218301deb1fa7ea8d249dab28247fab300df94a8a096ef2d8368684
|
7
|
+
data.tar.gz: bc82948bcc1feb8e4715bb774b7b2f1957e2a1e3e2db855147c216860647cb3d06a791cd3f7403a42d847c4aae3c4bdcef1e7989564c02ccfc552226f563a0ea
|
data/app/models/simplec/page.rb
CHANGED
@@ -105,8 +105,11 @@ module Simplec
|
|
105
105
|
# @!scope class
|
106
106
|
scope :search, ->(term, options={}) {
|
107
107
|
_types = Array(options.delete(:types))
|
108
|
+
_subdomains = Array(options.delete(:subdomains))
|
108
109
|
|
109
110
|
query = all
|
111
|
+
query = query.includes(:subdomain).
|
112
|
+
where(simplec_subdomains: {name: _subdomains}) if _subdomains.any?
|
110
113
|
query = query.where(type: _types) if _types.any?
|
111
114
|
options.each { |k,v| query = query.where("query->>:k = :v", k: k, v: v) }
|
112
115
|
|
data/lib/simplec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|