1 class ArtistsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
4 before_action :authenticate_artist, :only => [:edit, :update, :destroy]
6 before_action :authenticate_resource_reader, :only => [
9 before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
10 before_action :authenticate_artist, :only => [:edit, :update, :destroy]
17 def show_html_format format
24 respond_to do |format|
25 show_html_format format
26 show_prof_format format
27 show_json_format format
41 @item = @my_model_class.new
43 @item.attributes = @item.permit_params params
44 @item.overwrite @operators
45 render_create root_path
50 @item.attributes = @item.permit_params params
51 @item.overwrite @operators
52 render_update '/home/configure'
57 @item = @my_model_class.edit(params[:id], @operators)
58 render_destroy '/home/configure'