OSDN Git Service

add binder
[pettanr/pettanr.git] / app / models / writing_format.rb
index 44fe9f0..f55aa7d 100644 (file)
@@ -1,4 +1,4 @@
-class WritingFormat < Peta::Item
+class WritingFormat < Peta::SystemResource
   load_manifest
   has_many :speeches
   belongs_to :system_picture
@@ -29,12 +29,6 @@ class WritingFormat < Peta::Item
 def self.list
   self.enable_list
 end
-  def self.enable_list
-    WritingFormat.find(:all).delete_if {|wf|
-      wf.enable? == false
-    }
-  end
-  
   def self.list_opt
     {}
   end