before_filter :authenticate_user, :only => []
else
before_filter :authenticate_reader, :only => [
- :index, :show, :by_panel, :by_system_picture, :count, :count_by_panel, :count_by_system_picture
+ :index, :show, :by_panel, :by_system_picture
]
before_filter :authenticate_user, :only => []
end
before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
-
- def self.model
- SpeechBalloonTemplate
- end
def index
filer_list
def show_html_format format
format.html {
- @speech_balloon_template = @item
}
end
end
end
- def count
- list_count
- end
-
- def count_by_panel
- list_count
- end
-
- def count_by_system_picture
- list_count
- end
-
def new
form_new
end
end
def destroy
- @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
- @speech_balloon_template.destroy
-
- respond_to do |format|
- format.html { redirect_to :action => :list }
- format.json { head :ok }
- end
+ set_model
+ @item = @my_model_class.edit(params[:id], @operators)
+ render_destroy '/' + @my_model_class.path_name
end
+
end