OSDN Git Service

fix profiler
[pettanr/pettanr.git] / app / controllers / writing_formats_controller.rb
index ab11f80..078566b 100644 (file)
@@ -2,11 +2,11 @@ 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, :count, :count_by_system_picture]
     before_filter :authenticate_user, :only => []
   end
   before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
-
+  
   def self.model
     WritingFormat
   end
@@ -14,7 +14,11 @@ class WritingFormatsController < ApplicationController
   def index
     filer_list
   end
-
+  
+  def by_system_picture
+    filer_list
+  end
+  
   def show_html_format format
     format.html {
     }
@@ -33,6 +37,10 @@ class WritingFormatsController < ApplicationController
     list_count
   end
   
+  def count_by_system_picture
+    list_count
+  end
+  
   def new
     form_new
   end