1 class WritingFormatsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => []
5 before_filter :authenticate_reader, :only => [:index, :show, :count]
6 before_filter :authenticate_user, :only => []
8 before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
18 def show_html_format format
20 @writing_format = @item
26 respond_to do |format|
27 show_html_format format
28 show_prof_format format
29 show_json_format format