effective_classifieds 0.4.6 → 0.4.8

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: 04aa76011636f0b0567c2f9bc47a1cbc10223a1d373e9b25083373b32bdebf0a
4
- data.tar.gz: 42028db9291dbd902e7c1ed915db086ceaed94d9251d7e865529b8e8a44e59a1
3
+ metadata.gz: 6e5269c6dccc1960df07c54cd8dce25942cfc15136d2b40a36707ef801c03f57
4
+ data.tar.gz: 18c39f1c846eea9a4cdb9a3a5653d58e46472bf95823ea86c703bb329e2a54e8
5
5
  SHA512:
6
- metadata.gz: 77818f2c23a18486b68b5ef0a037b6a9100d8818a25a292444e7d0fc654c53c0f51d80aaee6f4f14fa1a4019ff8c8570cd523cfd59af6cd5f384ca48fc969b55
7
- data.tar.gz: 065fd119c41bf71817c2e983714267ffc5c16e2445910fb84549a05b0b27ac71db574a5f5a7d9413b5705547429680627aa347bf7e62e93248b43b0654f37c84
6
+ metadata.gz: e3989934b268ccc5af1f49d9df8e43d719e4e6055433f750e6ceae58ecd7c80cb0e0655f25065a88b1527c6fed8bb3c4ce7a88d607c9f9a57dba8d5467197b24
7
+ data.tar.gz: 3c88ed94cd34bedd065bb70b1df8ff1aa99b79cb8968019475e616f17e54c8724602f30e520bf7588263ac34207ab833312f96a579a6c281f9e605c09e59d7dd
@@ -63,7 +63,7 @@ module Effective
63
63
  timestamps
64
64
  end
65
65
 
66
- scope :sorted, -> { order(:id) }
66
+ scope :sorted, -> { order(end_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)) }
@@ -87,7 +87,7 @@ module Effective
87
87
  }
88
88
 
89
89
  scope :classifieds, -> (user: nil, unpublished: false) {
90
- scope = all.deep.sorted
90
+ scope = all.deep
91
91
 
92
92
  if defined?(EffectiveRoles) && EffectiveClassifieds.use_effective_roles
93
93
  scope = scope.for_role(user&.roles)
@@ -16,7 +16,7 @@
16
16
  .alert.alert-danger.mb-4
17
17
  Your posting must still be approved before it will be displayed.
18
18
 
19
- = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
19
+ = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
20
20
 
21
21
  = render 'effective/classified_wizards/summary', classified_wizard: resource
22
22
  = render 'effective/classified_wizards/classified_wizard', classified_wizard: resource
@@ -26,4 +26,4 @@
26
26
  = collapse('Show orders...', card_class: 'my-2') do
27
27
  = render 'effective/classified_wizards/orders', classified_wizard: resource
28
28
 
29
- = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary'
29
+ = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.4.6'.freeze
2
+ VERSION = '0.4.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_classifieds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect