1 class ArtistsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
4 before_filter :authenticate_artist, :only => [:edit, :update, :destroy]
6 before_filter :authenticate_resource_reader, :only => [
7 :index, :show, :resource_pictures
9 before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
10 before_filter :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 = params[@my_model_class.item_name]
44 @item.overwrite @operators
45 render_create root_path
50 @item.attributes = params[@my_model_class.item_name]
51 @item.overwrite @operators
52 render_update '/home/configure'
56 @artist = Artist.edit(params[:id], @operators)
59 respond_to do |format|
60 format.html { redirect_to artists_url }
61 format.json { head :ok }