effective_classifieds 0.6.2 → 0.6.3

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: 7064c7d9f3e797ce52d20ca502bbb0d790339c0fb52f74364c0d93eaa8927a4e
4
- data.tar.gz: 057bae1906a935f14f76b8edd7f5624fb4720c660656c40a79262ff2cb284902
3
+ metadata.gz: 9f50ce82294a1f8cacc7770a7ed0c016b9cfaf167e5503b77811909ac0f50e8b
4
+ data.tar.gz: 388ea2f75b8dbedeaf6c5e2e647dcb7e89ac6557f7d4e577e69e68388c5199c6
5
5
  SHA512:
6
- metadata.gz: cda01569456e9e3fe538526ea2503750b2d4c9372c7cd608164dcb077a7290ad94a5a4178f25a4200df0213544a8786aaa6add3714b4307bbdb5d050ef3d17d9
7
- data.tar.gz: 49c51e24af0654dac4af2c7b81b87b728aa7addf4bc80cadb6f11a6feb1b66835d0125e26472d0dfaffe0656a782fb8866d2460bd85d1ff3fc354c7ab7a78b66
6
+ metadata.gz: 5d4e9750e5f9283bc579338d05e302ef4f4aadbbb7fedcc3b0b2a7edc34b58056a7b57962d4384f4c9ffa31c7a82cd1f68a00b589328e7ddfaf34787c96af6f1
7
+ data.tar.gz: f80d8138623f819eeb2ace8b51cc6f947ffde862263cdd459ef525227987ab3881e29f9bf114f0caafc3cab2d7b4503e6a85db933e31014e870fe8a9a825b409
@@ -64,7 +64,10 @@ module Effective
64
64
  end
65
65
 
66
66
  scope :sorted, -> { order(start_on: :desc) }
67
- scope :deep, -> { with_rich_text_body }
67
+
68
+ scope :deep, -> {
69
+ with_rich_text_body.with_attached_file.includes(:classified_wizard, :owner, :purchased_order)
70
+ }
68
71
 
69
72
  scope :upcoming, -> { where(arel_table[:end_on].gt(Time.zone.now)) }
70
73
  scope :past, -> { where(arel_table[:end_on].lteq(Time.zone.now)) }
@@ -1,4 +1,4 @@
1
- = effective_form_with(model: classified, url: classified.persisted? ? effective_classifieds.admin_classified_path(classified.id) : effective_classifieds.admin_classifieds_path) do |f|
1
+ = effective_form_with(model: [:admin, classified], engine: true) do |f|
2
2
  = f.check_box :authenticate_user, label: 'Yes, the user must be be signed in to view', hint: 'Sign up is required to register for any classified'
3
3
 
4
4
  - if EffectiveClassifieds.use_effective_roles
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.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.6.2
4
+ version: 0.6.3
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: 2023-10-31 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails