1 class SpeechesController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => []
4 before_filter :authenticate_author, :only => []
6 before_filter :authenticate_reader, :only => [
7 :index, :show, :by_speech_balloon, :by_writing_format, :count, :count_by_speech_balloon, :count_by_writing_format
9 before_filter :authenticate_user, :only => []
10 before_filter :authenticate_author, :only => []
12 before_filter :authenticate_admin!, :only => []
31 @item = Speech.show(params[:id], @operators)
32 respond_to do |format|
37 format.json { render json: @item.to_json(Speech.show_json_opt) }
45 def count_by_speech_balloon
49 def count_by_writing_format