OSDN Git Service

change editor
[pettanr/pettanr.git] / app / controllers / writing_formats_controller.rb
index ab11f80..cdb27e5 100644 (file)
@@ -2,19 +2,21 @@ class WritingFormatsController < ApplicationController
   if Manifest.manifest.magic_numbers['run_mode'] == 0
     before_filter :authenticate_user, :only => []
   else
-    before_filter :authenticate_reader, :only => [:index, :show, :count]
+    before_filter :authenticate_reader, :only => [
+      :index, :by_system_picture, :show
+    ]
     before_filter :authenticate_user, :only => []
   end
   before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
-
-  def self.model
-    WritingFormat
-  end
   
   def index
     filer_list
   end
-
+  
+  def by_system_picture
+    filer_list
+  end
+  
   def show_html_format format
     format.html {
     }
@@ -29,10 +31,6 @@ class WritingFormatsController < ApplicationController
     end
   end
   
-  def count
-    list_count
-  end
-  
   def new
     form_new
   end