OSDN Git Service

fic picture publishing
[pettanr/pettanr.git] / app / models / writing_format.rb
index 97965f6..5e54402 100644 (file)
@@ -1,4 +1,5 @@
-class WritingFormat < Peta::Item
+class WritingFormat < Peta::SystemResource
+  load_manifest
   has_many :speeches
   belongs_to :system_picture
   
@@ -9,10 +10,6 @@ class WritingFormat < Peta::Item
   validates :system_picture_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :settings, :presence => true
   
-  def self.valid_encode_columns
-    super + ['name', 'classname', 'caption', 'settings']
-  end
-  
   def supply_default
   end
   
@@ -32,6 +29,7 @@ class WritingFormat < Peta::Item
 def self.list
   self.enable_list
 end
+
   def self.enable_list
     WritingFormat.find(:all).delete_if {|wf|
       wf.enable? == false