mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
12 lines
268 B
Ruby
12 lines
268 B
Ruby
class Reference < ActiveRecord::Base
|
|
belongs_to :person
|
|
belongs_to :job
|
|
|
|
has_many :agents_posts_authors, :through => :person
|
|
end
|
|
|
|
class BadReference < ActiveRecord::Base
|
|
self.table_name ='references'
|
|
default_scope :conditions => {:favourite => false }
|
|
end
|