OSDN Git Service

fix model
[pettanr/pettanr.git] / app / models / scroll.rb
index a569013..4c1d21a 100644 (file)
@@ -6,6 +6,7 @@ class Scroll < Peta::Content
   validates :title, :presence => true, :length => {:maximum => 100}
   validates :visible, :presence => true, :numericality => true, :inclusion => {:in => 0..1}
   validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
+  
   def supply_default
     self.visible = 0 if self.visible.blank?
   end