effective_events 0.10.0 → 0.10.1
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/datatables/admin/effective_event_registrants_datatable.rb +1 -1
- data/app/models/concerns/effective_events_event_registration.rb +1 -1
- data/app/models/effective/event.rb +6 -3
- data/app/views/admin/events/_form.html.haml +3 -2
- data/app/views/admin/events/_form_access.html.haml +1 -1
- data/app/views/effective/event_registrations/_dashboard.html.haml +1 -0
- 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: cfe22059403401435f15bb3de7a04e64d5f6d66d67b5fa538e552f743bc80657
|
|
4
|
+
data.tar.gz: 9dde412444e3898074f38c5b4c8cb845bb7b22afce81b2af11d46ec9fe9f22db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a9b73d87d24d66c537427daf7a5f23d4be354eaaf24f34f35646bebd5527727d6236e2a7d8cd8728c9e00d96a061783ba7d772c5c4ab97662ab7bc8a96afdd2
|
|
7
|
+
data.tar.gz: 6f84878e674939ad1843be2a35ee6d4946a1dc1a4a2dd05a6c477a9453d1ac04ada9903fe31e5c65e7c60cfd1d447f30c1ad3c4f5c0b2bc6ccd83b55c19c01e4
|
|
@@ -37,7 +37,7 @@ module Admin
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
collection do
|
|
40
|
-
scope = Effective::EventRegistrant.deep.purchased_or_deferred
|
|
40
|
+
scope = Effective::EventRegistrant.deep.purchased_or_deferred
|
|
41
41
|
|
|
42
42
|
if attributes[:event_id].present?
|
|
43
43
|
scope = scope.where(event: event)
|
|
@@ -77,7 +77,7 @@ module EffectiveEventsEventRegistration
|
|
|
77
77
|
timestamps
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
scope :deep, -> { includes(:owner, :event, :
|
|
80
|
+
scope :deep, -> { includes(:owner, :event_registrants, :event_addons, event: [:event_products, :event_tickets]) }
|
|
81
81
|
scope :sorted, -> { order(:id) }
|
|
82
82
|
|
|
83
83
|
scope :in_progress, -> { where.not(status: [:submitted]) }
|
|
@@ -6,7 +6,6 @@ module Effective
|
|
|
6
6
|
|
|
7
7
|
if defined?(PgSearch)
|
|
8
8
|
include PgSearch::Model
|
|
9
|
-
|
|
10
9
|
multisearchable against: [:body]
|
|
11
10
|
end
|
|
12
11
|
|
|
@@ -43,7 +42,6 @@ module Effective
|
|
|
43
42
|
acts_as_tagged if respond_to?(:acts_as_tagged)
|
|
44
43
|
acts_as_role_restricted if respond_to?(:acts_as_role_restricted)
|
|
45
44
|
|
|
46
|
-
|
|
47
45
|
effective_resource do
|
|
48
46
|
title :string
|
|
49
47
|
|
|
@@ -72,7 +70,12 @@ module Effective
|
|
|
72
70
|
end
|
|
73
71
|
|
|
74
72
|
scope :sorted, -> { order(start_at: :desc) }
|
|
75
|
-
|
|
73
|
+
|
|
74
|
+
scope :deep, -> {
|
|
75
|
+
base = includes(:event_registrants, :event_tickets, :rich_texts)
|
|
76
|
+
base = base.includes(:pg_search_document) if defined?(PgSearch)
|
|
77
|
+
base
|
|
78
|
+
}
|
|
76
79
|
|
|
77
80
|
scope :published, -> { where(draft: false).where(arel_table[:published_at].lt(Time.zone.now)) }
|
|
78
81
|
scope :unpublished, -> { where(draft: true).where(arel_table[:published_at].gteq(Time.zone.now)) }
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
= tab 'Access' do
|
|
46
46
|
= render '/admin/events/form_access', event: event
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
- if event.persisted?
|
|
49
|
+
- if event.respond_to?(:logs_datatable)
|
|
49
50
|
= tab "Logs" do
|
|
50
|
-
= render_inline_datatable(event.
|
|
51
|
+
= render_inline_datatable(event.logs_datatable)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
= effective_form_with(model:
|
|
1
|
+
= effective_form_with(model: [:admin, event], engine: true) do |f|
|
|
2
2
|
= f.check_box :authenticate_user, label: 'Yes, the user must be be signed in to view this event', hint: 'Sign up is required to register for any event'
|
|
3
3
|
|
|
4
4
|
- if EffectiveEvents.use_effective_roles
|
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: 0.10.
|
|
4
|
+
version: 0.10.1
|
|
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-
|
|
11
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|