Module: EffectiveMembershipsStatus
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/effective_memberships_status.rb
Overview
EffectiveMembershipsStatus
Mark your status model with effective_memberships_status to get all the includes
Defined Under Namespace
Modules: Base, ClassMethods
Instance Method Summary collapse
- #individual? ⇒ Boolean
- #membership_directory_title ⇒ Object
- #not_in_good_standing? ⇒ Boolean
- #organization? ⇒ Boolean
-
#reinstatable? ⇒ Boolean
Used for Apply to Join Reinstatement.
-
#to_s ⇒ Object
Instance Methods.
Instance Method Details
#individual? ⇒ Boolean
67 68 69 |
# File 'app/models/concerns/effective_memberships_status.rb', line 67 def individual? status_type == 'Individual' end |
#membership_directory_title ⇒ Object
63 64 65 |
# File 'app/models/concerns/effective_memberships_status.rb', line 63 def membership_directory_title to_s end |
#not_in_good_standing? ⇒ Boolean
75 76 77 |
# File 'app/models/concerns/effective_memberships_status.rb', line 75 def not_in_good_standing? title == 'Not In Good Standing' end |
#organization? ⇒ Boolean
71 72 73 |
# File 'app/models/concerns/effective_memberships_status.rb', line 71 def organization? status_type == 'Organization' end |
#reinstatable? ⇒ Boolean
Used for Apply to Join Reinstatement
80 81 82 |
# File 'app/models/concerns/effective_memberships_status.rb', line 80 def reinstatable? true end |
#to_s ⇒ Object
Instance Methods
59 60 61 |
# File 'app/models/concerns/effective_memberships_status.rb', line 59 def to_s title.presence || 'New Membership Status' end |