class ResourcePicturePicturesController < ApplicationController
if Manifest.manifest.magic_numbers['run_mode'] == 0
- before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
else
- before_filter :authenticate_reader, :only => [:index, :show, :by_original_picture, :by_resource_picture, :by_picture]
- before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
+ before_action :authenticate_reader, :only => [:index, :show, :by_original_picture, :by_resource_picture, :by_picture]
+ before_action :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
end
def index
end
def by_original_picture
- filer_list
+ filer_list param: params[:id]
end
def by_resource_picture
- filer_list
+ filer_list param: params[:id]
end
def by_picture
- filer_list
+ filer_list param: params[:id]
end
def show