Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 754173c5ff
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.655 kb
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
class SecureReader < ActiveRecord::Base
self.table_name = "readers"
belongs_to :secure_post, :class_name => "Post", :foreign_key => "post_id"
belongs_to :secure_person, :inverse_of => :secure_readers, :class_name => "Person", :foreign_key => "person_id"
attr_accessible nil
end
class LazyReader < ActiveRecord::Base
self.table_name = "readers"
default_scope -> { where(skimmer: true) }
belongs_to :post
belongs_to :person
end
Jump to Line
Something went wrong with that request. Please try again.