homeland-jobs 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/homeland/jobs/jobs_controller.rb +4 -0
- data/lib/homeland/jobs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3302346a9d2cbb371d3d54b6c1eabf9c18cc47d74cd3b3e847995d557d88f35
|
4
|
+
data.tar.gz: e4287a943ef756f8e8b60d94a13176e7e2c61c6fb5750c170391df9467d0252a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02821e9c37157aa5bca02a32ae90c52fc7d35dc4c6e569657334a4fcc24f6d5b2c7cfa1d7d87d7f890d753049e64ff9ec7b51b3cfe1a278da8a14a8b8e73d60
|
7
|
+
data.tar.gz: d201d2f5ec95cc68548b42d46e36752487779d17347560e549b1f9b74a31f3eb6d78a22c9643b0b1f493dc43361ba9752d29838ccafd949615b4edc243c26d1c
|
@@ -6,6 +6,10 @@ module Homeland::Jobs
|
|
6
6
|
@suggest_topics = Topic.where(node_id: @node.id).suggest.limit(3)
|
7
7
|
suggest_topic_ids = @suggest_topics.map(&:id)
|
8
8
|
@topics = Topic.where(node_id: @node.id)
|
9
|
+
|
10
|
+
# New ban filter by :grade column
|
11
|
+
@topics = @topics.without_ban if @topics.respond_to?(:without_ban)
|
12
|
+
|
9
13
|
@topics = @topics.where.not(id: suggest_topic_ids) if suggest_topic_ids.count > 0
|
10
14
|
@topics = @topics.last_actived.includes(:user).page(params[:page])
|
11
15
|
@topics = @topics.where("title LIKE ?", "%[#{params[:location]}]%") if params[:location]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homeland-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|