Cruft from seperate log controller removed

This commit is contained in:
Christoph Haas 2018-08-13 15:02:11 +02:00
parent 2b3db52608
commit 80d21a1f90
6 changed files with 1 additions and 65 deletions

View file

@ -1,14 +0,0 @@
class LogsController < ApplicationController
before_action :authenticate_user!
def index
logs = Log
if params[:search].present?
logger.debug "Searching for #{params[:search]}"
logs = logs.where("message ilike ?", "%#{params[:search]}%")
end
@logs = logs.paginate(page: params[:page], per_page: 20)
end
end