mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
6 lines
208 B
Ruby
6 lines
208 B
Ruby
class Reader < ActiveRecord::Base
|
|
belongs_to :post
|
|
belongs_to :person, :inverse_of => :readers
|
|
belongs_to :single_person, :class_name => 'Person', :foreign_key => :person_id, :inverse_of => :reader
|
|
end
|