1 class WritingFormatsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_action :authenticate_user, :only => []
5 before_action :authenticate_reader, :only => [
6 :index, :by_system_picture, :show
8 before_action :authenticate_user, :only => []
10 before_action :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
17 filer_list param: params[:id]
20 def show_html_format format
27 respond_to do |format|
28 show_html_format format
29 show_prof_format format
30 show_json_format format
44 @item = @my_model_class.new
46 @my_model_class.fold_extend_settings params[@my_model_class.item_name]
47 @item.attributes = @item.permit_params params
54 @my_model_class.fold_extend_settings params[@my_model_class.item_name]
55 @item.attributes = @item.permit_params params
62 @item = @my_model_class.edit(params[:id], @operators)
63 render_destroy '/' + @my_model_class.path_name