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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c409c2e3861eed5acd2950befe518b5ea5dbc902bdfceb46319a4da5114f05f
4
- data.tar.gz: 7d7454c44a2b358ecb5346b86d0756906dad854e5166b85cb78bda843bb67391
3
+ metadata.gz: b3302346a9d2cbb371d3d54b6c1eabf9c18cc47d74cd3b3e847995d557d88f35
4
+ data.tar.gz: e4287a943ef756f8e8b60d94a13176e7e2c61c6fb5750c170391df9467d0252a
5
5
  SHA512:
6
- metadata.gz: e183d8ba382d21aaae08c495ae3accdcbfdd778a1b461fff9be422f20e9dfb16eb222b9e74b5feb632d9160f6087134959e8da65732dc7c84ad49ef739dc42c4
7
- data.tar.gz: f1d6fcde70d2b65bccfe88299ed600991a95d2f40af95355de5eabcf6cb82e9c945ec584d39d73250a81b99c2199e42785373a0e16c52ec731d9e30b925f36bb
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]
@@ -2,6 +2,6 @@ module Homeland
2
2
  module Jobs
3
3
  NAME = 'jobs'
4
4
  DESCRIPTION = 'Display Job channel in navbar for list jobs.'
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
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.2.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-04-11 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails