#コミック
class Comic < Peta::Content
+ load_manifest
has_many :stories, :order => 't'
belongs_to :author
validates :visible, :presence => true, :numericality => true, :inclusion => {:in => 0..1}
validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
- def self.valid_encode_columns
- super + ['title', 'description']
- end
-
def self.visible_count_options
{:conditions => 'visible > 0'}
end