effective_events 3.2.14 → 3.3.0

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: 0a797f7ccd9ea23c00dc6638669425e288730c9a1d1f08a36043f377f5973efd
4
- data.tar.gz: 7ef86038c72c837ee4b2498b1d14003e6c316d2c494d042a396cb4be751af627
3
+ metadata.gz: b8f19aa524cb9c0fece9d2d86d9bf8e1c6d849abb690d418295348123ad42e77
4
+ data.tar.gz: 7feda812ca3de8fb56f01fd44bfb6edd37cb5124fe1f53cbd1be9676c606daea
5
5
  SHA512:
6
- metadata.gz: a9e427bdcf48a4c1e13a5414a1adb3ffffb618fd8e11ef089bc54d92f0cc0916e610187f1e2704e3e2eb506a870a5ab4580f4de0efdb56436c145e483157273e
7
- data.tar.gz: b49044efb5531b715703ab58d7a381a4740e840dd1f548d00e3e3927e08c9a43834ddf73be65c1cadeaa692f48dce0605280a093b78c940387cfe6beb122f4de
6
+ metadata.gz: f381947b37a1f81d30b6d9016d251d474114ffad8cb20592446fc05c58a9c2dec5ed86321e3bc6de9c82573799b719d59d623acc01ce44e44cb7bd794a30ee2c
7
+ data.tar.gz: '09f6d8b2e6d4b187e3b424b7abc81a60400bc49cfb2fe64216c7993ab18aa1e97b2b6ea15a7d7bed878e821beacd220a44a384e0cde5180734c239c82f7aa923'
@@ -26,7 +26,7 @@ module Admin
26
26
  end
27
27
 
28
28
  col :purchased_order, visible: false
29
- col :owner, visible: false
29
+ col :owner, visible: false, sql_column: :owner
30
30
 
31
31
  col :first_name
32
32
  col :last_name
@@ -22,7 +22,7 @@ module Admin
22
22
 
23
23
  col :event
24
24
 
25
- col :owner
25
+ col :owner, sql_column: :owner
26
26
  col :event_registration, visible: false
27
27
 
28
28
  if defined?(EffectiveMemberships) && EffectiveMemberships.Organization.respond_to?(:sponsors)
@@ -89,6 +89,13 @@ module Admin
89
89
  col :response2
90
90
  col :response3
91
91
 
92
+ col(:billing_address1, visible: false) { |registrant| registrant.user.try(:billing_address).try(:address1) }
93
+ col(:billing_address2, visible: false) { |registrant| registrant.user.try(:billing_address).try(:address2) }
94
+ col(:billing_city, visible: false) { |registrant| registrant.user.try(:billing_address).try(:city) }
95
+ col(:billing_province, visible: false) { |registrant| registrant.user.try(:billing_address).try(:province) }
96
+ col(:billing_postal_code, visible: false) { |registrant| registrant.user.try(:billing_address).try(:postal_code) }
97
+ col(:billing_country, visible: false) { |registrant| registrant.user.try(:billing_address).try(:country) }
98
+
92
99
  actions_col do |registrant|
93
100
  if EffectiveResources.authorized?(self, :impersonate, registrant.owner)
94
101
  dropdown_link_to("Impersonate", "/admin/users/#{registrant.owner_id}/impersonate", data: { confirm: "Really impersonate #{registrant.owner}?", method: :post, remote: true })
@@ -97,7 +104,7 @@ module Admin
97
104
  end
98
105
 
99
106
  collection do
100
- scope = Effective::EventRegistrant.deep.all
107
+ scope = Effective::EventRegistrant.deep.includes(user: :addresses).all
101
108
 
102
109
  if attributes[:event_id].present?
103
110
  scope = scope.where(event: event)
@@ -11,7 +11,7 @@ class Admin::EffectiveEventRegistrationsDatatable < Effective::Datatable
11
11
  col :completed_at, label: 'Completed', as: :date
12
12
 
13
13
  col :event
14
- col :owner
14
+ col :owner, sql_column: :owner
15
15
 
16
16
  col :event_registrants, visible: false
17
17
  col :event_addons, visible: false
@@ -14,7 +14,7 @@ class EffectiveEventRegistrationsDatatable < Effective::Datatable
14
14
  link_to(er.event.to_s, effective_events.event_path(er.event))
15
15
  end
16
16
 
17
- col :owner, visible: false
17
+ col :owner, visible: false, sql_column: :owner
18
18
  col :status, visible: false
19
19
  col :event_registrants, label: 'Registrants'
20
20
 
@@ -156,7 +156,7 @@ module Effective
156
156
  EffectiveEvents.send_email(email_template, event_registrant, email_notification_params)
157
157
  rescue => e
158
158
  EffectiveLogger.error(e.message, associated: event_registrant) if defined?(EffectiveLogger)
159
- ExceptionNotifier.notify_exception(e, data: { event_registrant_id: event_registrant.id, event_notification_id: id }) if defined?(ExceptionNotifier)
159
+ EffectiveResources.send_error(e, event_registrant_id: event_registrant.id, event_notification_id: id)
160
160
  raise(e) if Rails.env.test? || Rails.env.development?
161
161
  end
162
162
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '3.2.14'.freeze
2
+ VERSION = '3.3.0'.freeze
3
3
  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.2.14
4
+ version: 3.3.0
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-02-02 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails