effective_events 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/event.rb +1 -2
- 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: '03792a86651968a66d776678245154a7e1315bd4927a5f6803cf822831b11b54'
|
4
|
+
data.tar.gz: fff7d1415683e67b7982fd82bfdfa0f258e10451ea1645f00ce2b7a86fd86abd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a760d7c086e811c0bd6f64f36e2bcddefd725c86c533f922448f8242f0c60edade3dbe7c3f96b07b034200d19f99efd3cd161b1de460eed9e24ba26965f569ba
|
7
|
+
data.tar.gz: 7157dfd23817e90be3102d6ce494b027f392b94568557dccf85b99c0622150e33311db116d256f3a9996e7fff8fea4d2fb6d9c08bd5eb9438ee00b889de9b18e
|
@@ -117,7 +117,6 @@ module Effective
|
|
117
117
|
|
118
118
|
validates :registration_start_at, presence: true, unless: -> { external_registration? }
|
119
119
|
validates :registration_end_at, presence: true, unless: -> { external_registration? }
|
120
|
-
validates :external_registration_url, presence: true, if: -> { external_registration? }
|
121
120
|
|
122
121
|
validate(if: -> { start_at && end_at }) do
|
123
122
|
self.errors.add(:end_at, 'must be after start date') unless start_at < end_at
|
@@ -167,7 +166,7 @@ module Effective
|
|
167
166
|
return false if closed?
|
168
167
|
return false if sold_out?
|
169
168
|
|
170
|
-
external_registration? || event_tickets.present?
|
169
|
+
(external_registration? && external_registration_url.present?) || event_tickets.present?
|
171
170
|
end
|
172
171
|
|
173
172
|
def closed?
|
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.6.
|
4
|
+
version: 0.6.2
|
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-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|