Cruft from seperate log controller removed
This commit is contained in:
parent
2b3db52608
commit
80d21a1f90
6 changed files with 1 additions and 65 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue