diff --git a/app/models/organization.rb b/app/models/organization.rb index 2f9f4cc..17fb7b8 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -147,6 +147,12 @@ class Organization < Profile ] end + def short_name chars = 40 + s = self.display_name + s = super(chars) if s.blank? + s + end + def notification_emails emails = [contact_email].select(&:present?) + admins.map(&:email) if emails.empty? -- libgit2 0.21.2