effective_events 3.2.8 → 3.2.10
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 +4 -4
- data/app/models/effective/event_registrant.rb +4 -4
- data/lib/effective_events/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ef301082e34f6e1691126dfb659b46e17d34f5076eeb2c92fc1b12ce07ca1e6
|
|
4
|
+
data.tar.gz: 62ea9cdb2ebd5039ec71e69f2ebdd6b1e1ba18801b66a0a5693d27a4d2e651b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68ed4c0b21696e6ba3a1913f9d77d5e3e91e3d1670079bda5a148aad6dd08ea29f4294752ffe9c6cc0143ee3fc46afba342f3dbb5cbb503f3b57065847929398
|
|
7
|
+
data.tar.gz: c3e62638064fc5ac480f6e60f6f6cb9264e82c03861bbd6a4fad3d5aac13ca114fa6bd73e254cfc3ebefaa52405e29d656b2cccf30398040404679411cab55b0
|
|
@@ -95,7 +95,7 @@ module Effective
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
before_validation(if: -> { user.blank? && first_name.present? && last_name.present? && email.present? }) do
|
|
98
|
-
build_user()
|
|
98
|
+
build_user()
|
|
99
99
|
build_organization_and_representative() if EffectiveEvents.organization_enabled?
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -382,7 +382,7 @@ module Effective
|
|
|
382
382
|
update!(promoted: true, purchased_order: nil)
|
|
383
383
|
|
|
384
384
|
# Check if the ticket owner has an unpurchased event registration for the event or create a new one
|
|
385
|
-
event_registration = EffectiveEvents.EventRegistration.
|
|
385
|
+
event_registration = EffectiveEvents.EventRegistration.submitted.where(event: event, owner: owner).where.not(id: event_registration_id).first
|
|
386
386
|
event_registration ||= EffectiveEvents.EventRegistration.new(event: event, owner: owner)
|
|
387
387
|
|
|
388
388
|
# Put the event registration on the checkout step
|
|
@@ -575,7 +575,7 @@ module Effective
|
|
|
575
575
|
if EffectiveEvents.organization_enabled? && user_klass.try(:effective_memberships_organization_user?)
|
|
576
576
|
assign_attributes(organization: existing_user.organizations.first) if existing_user.organizations.present?
|
|
577
577
|
end
|
|
578
|
-
|
|
578
|
+
elsif EffectiveEvents.create_users
|
|
579
579
|
# Otherwise create a new user
|
|
580
580
|
new_user = user_klass.create(
|
|
581
581
|
first_name: first_name.strip,
|
|
@@ -587,7 +587,7 @@ module Effective
|
|
|
587
587
|
assign_attributes(user: new_user)
|
|
588
588
|
end
|
|
589
589
|
|
|
590
|
-
user
|
|
590
|
+
user&.valid?
|
|
591
591
|
end
|
|
592
592
|
|
|
593
593
|
# The organization might already be set here
|
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.2.
|
|
4
|
+
version: 3.2.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: 2025-
|
|
11
|
+
date: 2025-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|