effective_mentorships 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 569706e1dab213ee7cb6102a5242270b5b7586ffdb8d12ce5997635eb2e589dd
|
4
|
+
data.tar.gz: 28d54e0d12f669d3f376496c40605d00e979d29c981737416c17455e53ca0989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2372c9a3629dc4b2258309dc6b2353e930e3a2f804c9332a038154d2bbeca0189b76f79b52a5419c0d2216dcc4798ae2269c5b1d3eb08264e73dc679c9efc7aa
|
7
|
+
data.tar.gz: 58dd46785e9737b00690408040bdbdbbf04b194d0b34da1479647eb0aee8b4eed68a001f453c922c1acdbf7ae93d7147f018002633968564446839b7b7a18a07
|
@@ -26,7 +26,6 @@ module Admin
|
|
26
26
|
col :category, search: EffectiveMentorships.MentorshipRegistration.categories
|
27
27
|
col :venue, search: EffectiveMentorships.MentorshipRegistration.venues
|
28
28
|
col :location, search: EffectiveMentorships.MentorshipRegistration.locations
|
29
|
-
col :mentor_multiple_mentees, visible: false
|
30
29
|
col :mentor_multiple_mentees_limit, visible: false
|
31
30
|
|
32
31
|
col :parent, visible: false
|
@@ -61,7 +61,6 @@ module EffectiveMentorshipsRegistration
|
|
61
61
|
location :string # Closest city of residence
|
62
62
|
|
63
63
|
# Mentor only fields
|
64
|
-
mentor_multiple_mentees :boolean
|
65
64
|
mentor_multiple_mentees_limit :integer
|
66
65
|
|
67
66
|
# Mentee only fields
|
@@ -84,7 +83,7 @@ module EffectiveMentorshipsRegistration
|
|
84
83
|
validates :accept_declaration, acceptance: true
|
85
84
|
end
|
86
85
|
|
87
|
-
validates :mentor_multiple_mentees_limit, numericality: { greater_than: 0 }, if: -> { opt_in? &&
|
86
|
+
validates :mentor_multiple_mentees_limit, numericality: { greater_than: 0 }, if: -> { opt_in? && mentor? }
|
88
87
|
|
89
88
|
scope :deep, -> { includes(:rich_texts, :user, :mentorship_cycle) }
|
90
89
|
scope :sorted, -> { order(:id) }
|