effective_classifieds 0.4.8 → 0.4.10

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: d2931630940c37affb2cdd3ed51f2091685085bbb87d90c9a63d4e2055ebb246
4
+ data.tar.gz: 6618d98e661fb555384c82808187c5caae82aa5e972a3b17c9841647dda559dc
5
5
  SHA512:
6
- metadata.gz: e3989934b268ccc5af1f49d9df8e43d719e4e6055433f750e6ceae58ecd7c80cb0e0655f25065a88b1527c6fed8bb3c4ce7a88d607c9f9a57dba8d5467197b24
7
- data.tar.gz: 3c88ed94cd34bedd065bb70b1df8ff1aa99b79cb8968019475e616f17e54c8724602f30e520bf7588263ac34207ab833312f96a579a6c281f9e605c09e59d7dd
6
+ metadata.gz: 3b96e2f49826f5afd28a3522f2d1d5578014695212653c2661a08d87cc68c62306924835126cc06587280946a30c63ef56d2628e2ed319e8afd9660c834c3c7c
7
+ data.tar.gz: e7b20879880ab6765a8062c7e7af2e72b282e83f18580de5e71383e492d85f721c122113910692be7cd1e969a7df05496717e9155a87f2c915aac8dca6f68f70
@@ -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)) }
@@ -151,7 +151,7 @@ module Effective
151
151
  end
152
152
 
153
153
  def purchasable_name
154
- "Posting - #{to_s}"
154
+ "#{category} - #{title}"
155
155
  end
156
156
 
157
157
  def published?
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.4.8'.freeze
2
+ VERSION = '0.4.10'.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.10
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: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails