before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
else
before_filter :authenticate_resource_reader, :only => [
- :index, :show, :credit, :count,
- :by_original_picture, :by_license_group, :by_license, :by_artist,
- :count_by_original_picture, :count_by_license_group, :count_by_license, :count_by_artist
+ :index, :show, :credit,
+ :by_original_picture, :by_license_group, :by_license, :by_artist
]
before_filter :authenticate_user, :only => [:new, :create, :update, :destroy]
before_filter :authenticate_artist, :only => [:new, :create, :update, :destroy]
end
end
- def count
- list_count
- end
-
- def count_by_original_picture
- list_count
- end
-
- def count_by_license_group
- list_count
- end
-
- def count_by_license
- list_count
- end
-
- def count_by_artist
- list_count
- end
-
def new
# use @item, @original_picture
respond_to do |format|