Class: Decidim::UserGroup
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::UserGroup
- Defined in:
- app/models/decidim/user_group.rb
Overview
A UserGroup is an organization of citizens
Instance Method Summary collapse
-
#pending? ⇒ Boolean
Public: Checks if the user group is pending.
-
#rejected? ⇒ Boolean
Public: Checks if the user group is rejected.
-
#verified? ⇒ Boolean
Public: Checks if the user group is verified.
Instance Method Details
#pending? ⇒ Boolean
Public: Checks if the user group is pending.
34 35 36 |
# File 'app/models/decidim/user_group.rb', line 34 def pending? verified_at.blank? && rejected_at.blank? end |
#rejected? ⇒ Boolean
Public: Checks if the user group is rejected.
29 30 31 |
# File 'app/models/decidim/user_group.rb', line 29 def rejected? rejected_at.present? end |
#verified? ⇒ Boolean
Public: Checks if the user group is verified.
24 25 26 |
# File 'app/models/decidim/user_group.rb', line 24 def verified? verified_at.present? end |