Class: Decidim::UserGroupMembership
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::UserGroupMembership
- Defined in:
- decidim-core/app/models/decidim/user_group_membership.rb
Overview
A UserGroupMembership associate user with user groups
Constant Summary collapse
- ROLES =
%w(creator admin member requested invited).freeze
Instance Method Summary collapse
Instance Method Details
#creator? ⇒ Boolean
13 14 15 |
# File 'decidim-core/app/models/decidim/user_group_membership.rb', line 13 def creator? role.to_s == "creator" end |