Class Company
In: lib/company.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

    # File lib/company.rb, line 35
35:   def administrators
36:     adminrole = Role.find(:first, :conditions => "companyid=#{self.id} AND name='Administrator'")
37:     return self.users.select{|u| u.roles.include?(adminrole) }
38:   end
admins()

Alias for administrators

[Source]

    # File lib/company.rb, line 41
41:   def guest
42:     User.find(:first, :conditions => "companyid=#{self.id} AND defaultuser = true" )
43:   end

com.liferay.portal.model.Company

[Source]

    # File lib/company.rb, line 31
31:   def liferay_class
32:     'com.liferay.portal.model.Company'
33:   end

[Validate]