effective_classifieds 0.6.4 → 0.6.6

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: 183d1cca51d40fd8a279c5c8ce2bd4b773237a7f40eb1fb3db1ae05a064d696d
4
- data.tar.gz: 31d829481849ca92070b96f8df55c171718cd62a63ba5504aa0c4fef46a2c0ff
3
+ metadata.gz: 297af439da45de0c6884b20e1eae1ab6840a88487c81501783deae61dcaa7c83
4
+ data.tar.gz: b56b713ddfd6688807492661448bcca2afd6397b41dff3a52584cda4705d3065
5
5
  SHA512:
6
- metadata.gz: b37cfdae9fa2fcba722e07d8635287f9f2a051af9a90baeb3bce10899d8230c4099bee53380873f710b44d1656a3d7862d96c605aabcfbf6c570fbd68c13a6fa
7
- data.tar.gz: ffbcdce66f4e9923603d343808b5feea1d4d9484749fe43768f3d0bd5fdc5c9f432826fdc0933747127666e22ff2a36775313ff53783c9ebb8b8c07713e22025
6
+ metadata.gz: 5ef6644f2ed49177c7c1ed8b9f91c5e7e19fe1ae98c9fdad51e0139fba2cbe2e235b9b5f6633827fef22c089ef62339115c634f6ea558551b655cf5f128465fa
7
+ data.tar.gz: 2047fc9dcd098292c4516692c35ea11ad6bd89039fb5ebc55222ebe92476e066324e692b525faab02203bfb4a41911995691fc3b14fab8a82360fef515145774
@@ -2,4 +2,4 @@
2
2
  = render 'effective/classified_wizards/content', resource: resource
3
3
 
4
4
  = card do
5
- = render_checkout_step2(resource.submit_order, purchased_url: wizard_path(:submitted), deferred_url: wizard_path(:checkout), declined_url: wizard_path(:checkout))
5
+ = render_checkout_step2(resource.submit_order, purchased_url: wizard_path(:submitted), deferred_url: wizard_path(:checkout), declined_url: wizard_path(:checkout), skip_deferred: EffectiveClassifieds.skip_deferred)
@@ -9,11 +9,11 @@
9
9
  - if resource.checkout_required?
10
10
  - raise('expected a purchased classified submit_order') unless resource.submit_order&.purchased?
11
11
 
12
- .alert.alert-warning.mb-4
12
+ .alert.alert-success.mb-4
13
13
  This #{classified_label.downcase} was submitted on #{classified.submitted_at.strftime('%F')}.
14
14
 
15
15
  - unless classified.approved?
16
- .alert.alert-danger.mb-4
16
+ .alert.alert-warning.mb-4
17
17
  Your #{classified_label.downcase} must still be approved before it will be displayed.
18
18
 
19
19
  .mb-4= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'
@@ -21,6 +21,9 @@ EffectiveClassifieds.setup do |config|
21
21
  # Automatically approve classified ad submissions, otherwise require admin approval
22
22
  config.auto_approve = false
23
23
 
24
+ # Can checkout with phone or cheque 'deferred' payment providers
25
+ config.skip_deferred = false
26
+
24
27
  # Mailer Settings
25
28
  # Please see config/initializers/effective_resources.rb for default effective_* gem mailer settings
26
29
  #
@@ -9,7 +9,7 @@ module EffectiveClassifieds
9
9
 
10
10
  # Include acts_as_addressable concern and allow any ActiveRecord object to call it
11
11
  initializer 'effective_classifieds.active_record' do |app|
12
- ActiveSupport.on_load :active_record do
12
+ app.config.to_prepare do
13
13
  ActiveRecord::Base.extend(EffectiveClassifiedsClassifiedWizard::Base)
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveClassifieds
2
- VERSION = '0.6.4'.freeze
2
+ VERSION = '0.6.6'.freeze
3
3
  end
@@ -10,7 +10,7 @@ module EffectiveClassifieds
10
10
  :classifieds_table_name, :classified_wizards_table_name,
11
11
  :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject,
12
12
  :layout, :categories, :per_page, :use_effective_roles, :max_duration, :auto_approve,
13
- :classified_wizard_class_name
13
+ :classified_wizard_class_name, :skip_deferred
14
14
  ]
15
15
  end
16
16
 
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.4
4
+ version: 0.6.6
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-12-01 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails