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: 171010bae5f93974f5ba6044bd82f880f2b552bd913c7ca0137122b362859262
4
- data.tar.gz: cffbb49649eff6aba7a73456241ef7a8e86e3521225144230534bdbba6955b31
3
+ metadata.gz: 569706e1dab213ee7cb6102a5242270b5b7586ffdb8d12ce5997635eb2e589dd
4
+ data.tar.gz: 28d54e0d12f669d3f376496c40605d00e979d29c981737416c17455e53ca0989
5
5
  SHA512:
6
- metadata.gz: e6e1290b4d9b47a3518db1d17e22cb003ffe6bb1e5fdb5e3453671c2fe006b4d0c32f239f6df299b88932b2f30884c9a2e5e24a21c78282effa16ef805784d9b
7
- data.tar.gz: 599848b64d0f1c77f2141a6de91d748443c9f00c18531fb2c27c0e9fa86236e92280842394013da0d41b37e1578addaab5162f23fde71ab485430900568be1ab
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? && mentor_multiple_mentees? }
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) }
@@ -1,3 +1,3 @@
1
1
  module EffectiveMentorships
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_mentorships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect