2009-07-15 20:22:25 +00:00
|
|
|
class Essay < ActiveRecord::Base
|
|
|
|
belongs_to :writer, :primary_key => :name, :polymorphic => true
|
2010-10-19 13:14:06 +00:00
|
|
|
belongs_to :category, :primary_key => :name
|
|
|
|
has_one :owner, :primary_key => :name
|
2009-07-15 20:22:25 +00:00
|
|
|
end
|