effective_classifieds 0.4.8 → 0.4.9

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: 6e5269c6dccc1960df07c54cd8dce25942cfc15136d2b40a36707ef801c03f57
4
- data.tar.gz: 18c39f1c846eea9a4cdb9a3a5653d58e46472bf95823ea86c703bb329e2a54e8
3
+ metadata.gz: 72943ae44d62f83a10423520b8abf8febcda8e74bc93ac736d0f6fe0ceee5b43
4
+ data.tar.gz: 8d702db85ac010f831ce4c936439310c4b56409e6e1ec62f2f145ee346b7dbc7
5
5
  SHA512:
6
- metadata.gz: e3989934b268ccc5af1f49d9df8e43d719e4e6055433f750e6ceae58ecd7c80cb0e0655f25065a88b1527c6fed8bb3c4ce7a88d607c9f9a57dba8d5467197b24
7
- data.tar.gz: 3c88ed94cd34bedd065bb70b1df8ff1aa99b79cb8968019475e616f17e54c8724602f30e520bf7588263ac34207ab833312f96a579a6c281f9e605c09e59d7dd
6
+ metadata.gz: 4767b8c10911c5e30ca4d686d734a1a879b4b330b392b18bfc360e4645f1ef99603fd66769635cbfb1245dd10d161a57d3d63715f0d16b16b126bc4d5bd0b260
7
+ data.tar.gz: 9fc15c474a261316dca0986235f9a5c2b94eec26df739391d0f0dbae52fd13f618b71afc4dc6b3d855c9f3c509223bd24f18a6214db246c4b409457b35122d76
@@ -13,6 +13,7 @@ module Admin
13
13
  end
14
14
 
15
15
  datatable do
16
+ order :start_on
16
17
 
17
18
  col :updated_at, visible: false
18
19
  col :created_at, visible: false
@@ -2,7 +2,7 @@
2
2
  class EffectiveClassifiedsDatatable < Effective::Datatable
3
3
  datatable do
4
4
  length :all
5
- order :end_on
5
+ order :start_on
6
6
 
7
7
  col :start_on, as: :date, label: 'Published'
8
8
  col :end_on, as: :date, label: 'Closing'
@@ -63,7 +63,7 @@ module Effective
63
63
  timestamps
64
64
  end
65
65
 
66
- scope :sorted, -> { order(end_on: :desc) }
66
+ scope :sorted, -> { order(start_on: :desc) }
67
67
  scope :deep, -> { with_rich_text_body }
68
68
 
69
69
  scope :upcoming, -> { where(arel_table[:end_on].gt(Time.zone.now)) }
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.4.8'.freeze
2
+ VERSION = '0.4.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_classifieds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails