Class | Company
In: | app/models/company.rb
Parent: | ActiveRecord::Base

企業のモデル

### Methods

exists_with_people? name_with_in

### Public Class methods

exists_with_people?(p, q)

p と q が同一の企業に所属しているかどうかを判定する。

[Source]

        # File app/models/company.rb, line 38
    38:   def self.exists_with_people?(p, q)
    39:     return !((p.companies & q.companies).empty?)
    40:   end

### Public Instance methods

name_with_in()

[Source]

        # File app/models/company.rb, line 42
    42:   def name_with_in
    43:     name
    44:   end

[Validate]