validates :scroll_id, :presence => true, :numericality => true, :existence => {:both => false}
validates :panel_id, :presence => true, :numericality => true, :existence => {:both => false}
- validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
def supply_default
end
def overwrite operators
- return false unless operators.author
- self.author_id = operators.author.id
end
- def self.public_list_where
+ def self.public_list_where list
'scrolls.visible > 0'
end