effective_events 0.7.3 → 0.7.4
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: 15fe8d43e650bb0998d9464cafc91c5232ca05faa2d85f523aa650aac6c6eb5f
|
|
4
|
+
data.tar.gz: 307ff0337e444a3683fe7703c656f429269abaab6f5ee23367a87a378787a079
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 365a0e8f1dcc818e000e75fa20082eb065cf08b71956a983acd87c66f2df77dc39533bab9c6253149d7f790f2634cdc66c27446f68d7072ffa7beedb395e2795
|
|
7
|
+
data.tar.gz: dd6a7eeebf745211c02263bc9cdaac30e856cfa9b3e1dd94713f3cdb56b6a6586e61681ef56cf38ccc7514cd5942c0416409e21ff9ad6cbd0b1b9505bd8f34e5
|
|
@@ -27,8 +27,8 @@ module Admin
|
|
|
27
27
|
col :capacity, visible: false
|
|
28
28
|
col :capacity_available, visible: false
|
|
29
29
|
|
|
30
|
-
col :purchased_event_addons, label: '
|
|
31
|
-
product.purchased_event_addons.sort_by(&:to_s).map do |purchase|
|
|
30
|
+
col :purchased_event_addons, label: 'Name' do |product|
|
|
31
|
+
product.purchased_event_addons.reject(&:archived?).sort_by(&:to_s).map do |purchase|
|
|
32
32
|
content_tag(:div, purchase.owner.to_s, class: 'col-resource_item')
|
|
33
33
|
end.join.html_safe
|
|
34
34
|
end
|
|
@@ -34,9 +34,6 @@ module Effective
|
|
|
34
34
|
scope :sorted, -> { order(:position) }
|
|
35
35
|
scope :deep, -> { with_rich_text_body.includes(:purchased_event_addons) }
|
|
36
36
|
|
|
37
|
-
scope :archived, -> { where(archived: true) }
|
|
38
|
-
scope :unarchived, -> { where(archived: false) }
|
|
39
|
-
|
|
40
37
|
before_validation(if: -> { event.present? }) do
|
|
41
38
|
self.position ||= (event.event_products.map(&:position).compact.max || -1) + 1
|
|
42
39
|
end
|
|
@@ -35,9 +35,6 @@ module Effective
|
|
|
35
35
|
scope :sorted, -> { order(:position) }
|
|
36
36
|
scope :deep, -> { with_rich_text_body.includes(:event, :purchased_event_registrants) }
|
|
37
37
|
|
|
38
|
-
scope :archived, -> { where(archived: true) }
|
|
39
|
-
scope :unarchived, -> { where(archived: false) }
|
|
40
|
-
|
|
41
38
|
before_validation(if: -> { event.present? }) do
|
|
42
39
|
self.position ||= (event.event_tickets.map(&:position).compact.max || -1) + 1
|
|
43
40
|
end
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- results = @event_search.results(page: params[:page])
|
|
9
9
|
|
|
10
10
|
- if @event_search.present? && results.length == 0
|
|
11
|
-
.alert.alert-info There are no results for your search. Please try again.
|
|
11
|
+
.alert.alert-info.mb-3 There are no results for your search. Please try again.
|
|
12
12
|
|
|
13
13
|
.row
|
|
14
14
|
.col-md-3
|
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.7.
|
|
4
|
+
version: 0.7.4
|
|
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-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|