OSDN Git Service

list browser created
[pettanr/pettanr.git] / app / models / comic.rb
1 class Comic < ActiveRecord::Base
2   has_many :panels, :dependent => :destroy
3   belongs_to :author
4
5   def own? author
6     return false unless author
7     self.author_id == author.id
8   end
9   
10   def disp_editable
11     editable == 1 ? 'O' : 'X'
12   end
13   
14 end