Class: Group
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Group
show all
- Defined in:
- model/group.rb
Defined Under Namespace
Classes: GroupHaveSystematicReviewsError
Instance Method Summary
collapse
Instance Method Details
#administrator_name ⇒ Object
44
45
46
47
|
# File 'model/group.rb', line 44
def administrator_name
administrator.nil? ? I18n::t("error.group_without_administrator") : administrator.name
end
|
#systematic_reviews ⇒ Object
36
37
38
|
# File 'model/group.rb', line 36
def systematic_reviews
SystematicReview.where(:group_id=>self[:id])
end
|