Class: Organization
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Organization
- Defined in:
- app/models/organization.rb
Overview
Represents a group of users, usually associated with a particular institution
Instance Method Summary collapse
Instance Method Details
#create_default_resource_group ⇒ Object
32 33 34 |
# File 'app/models/organization.rb', line 32 def create_default_resource_group resource_groups.find_or_create_by(default: true, title: ResourceGroup::DEFAULT_TITLE) end |
#ready_to_review_representations ⇒ Object
36 37 38 |
# File 'app/models/organization.rb', line 36 def ready_to_review_representations representations.ready_to_review end |