effective_events 3.3.7 → 3.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a4f147aabea2ca607671f3976993850c269e10bb7382b17ed0460b4e21f4479
|
|
4
|
+
data.tar.gz: 670a7d8d731ae4e629d812d8e77a37349341ed248f545dd142ab425c77a1b2db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e80e353835130a464e48761058769061f571d82456885b14309daa27c1739b6a7b405bebec1f7117f565e08befc1589d8819a1961ba1344b2b364c8c8bea5d5a
|
|
7
|
+
data.tar.gz: 5616054957b9ccf7f3916c94aa364b1cb1465540e92117a53a536b658b00e39bfd2812ad4d19fecdcd81e9860ae9d971eee78f436ef20e4a94bb9530cac45070
|
|
@@ -74,9 +74,6 @@ module EffectiveEventsEventRegistration
|
|
|
74
74
|
has_many :event_addons, -> { order(:event_product_id, :id) }, class_name: 'Effective::EventAddon', inverse_of: :event_registration, dependent: :destroy
|
|
75
75
|
accepts_nested_attributes_for :event_addons, reject_if: -> (atts) { atts[:event_product_id].blank? }, allow_destroy: true
|
|
76
76
|
|
|
77
|
-
has_many :orders, -> { order(:id) }, as: :parent, class_name: 'Effective::Order', dependent: :nullify
|
|
78
|
-
accepts_nested_attributes_for :orders
|
|
79
|
-
|
|
80
77
|
# Effective Namespace
|
|
81
78
|
# For coupon fees
|
|
82
79
|
if defined?(EffectiveMemberships)
|
|
@@ -115,10 +112,13 @@ module EffectiveEventsEventRegistration
|
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
scope :sorted, -> { order(:id) }
|
|
118
|
-
|
|
115
|
+
|
|
119
116
|
scope :in_progress, -> { where(status: [:draft, :submitted]) }
|
|
120
117
|
scope :done, -> { where(status: :completed) }
|
|
121
118
|
|
|
119
|
+
# Records safe to purge via the purge_resources task: draft, unpaid, for an event that has already ended.
|
|
120
|
+
scope :purgable, -> { draft.not_purchased.where(event_id: Effective::Event.past) }
|
|
121
|
+
|
|
122
122
|
scope :delayed, -> { where(event_id: Effective::Event.delayed) }
|
|
123
123
|
scope :not_delayed, -> { where.not(event_id: Effective::Event.delayed) }
|
|
124
124
|
|
|
@@ -212,7 +212,7 @@ module EffectiveEventsEventRegistration
|
|
|
212
212
|
|
|
213
213
|
# If submitted with a cheque/phone deferred (but not delayed) processor then lock down the steps.
|
|
214
214
|
if submitted? && !delayed_payment_date_upcoming?
|
|
215
|
-
return (step == :submitted)
|
|
215
|
+
return (step == :submitted)
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
# Add ability to edit registrations up until payment date
|
|
@@ -269,7 +269,7 @@ module EffectiveEventsEventRegistration
|
|
|
269
269
|
# When the submit_order is deferred or purchased, we call submit!
|
|
270
270
|
# When the order is a deferred payment processor, we continue to the :submitted step
|
|
271
271
|
# When the order is a regular processor, the before_save will call complete! and we continue to the :complete step
|
|
272
|
-
# Purchasing the order later on will automatically call
|
|
272
|
+
# Purchasing the order later on will automatically call
|
|
273
273
|
def submit_wizard_on_deferred_order?
|
|
274
274
|
true
|
|
275
275
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_events
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.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: 2026-
|
|
11
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|