cirandas.net

ref: master

app/models/enterprises_block.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class EnterprisesBlock < ProfileListBlock

  def default_title
    n_('{#} enterprise', '{#} enterprises', profile_count)
  end

  def help
    _('This block displays the enterprises where this user works.')
  end

  def self.description
    _('Enterprises')
  end

  def profiles
    owner.enterprises
  end

end