Sha256: 5253e3795c16e7d72bc6c16a9f11b8fb540967a940ca09abbbd052a7586cdaea
Contents?: true
Size: 455 Bytes
Versions: 29
Compression:
Stored size: 455 Bytes
Contents
module Admin class Person < ActiveRecord::Base self.table_name = "people" belongs_to :company belongs_to :country belongs_to :state belongs_to :city has_many :professional_experiences has_many :companies, :through => :professional_experiences has_many :jobs, :through => :professional_experiences scope :employed, -> {where("employed = ?", true)} scope :unemployed, -> {where("employed = ?", false)} end end
Version data entries
29 entries across 29 versions & 1 rubygems