删除日志修改为只能修改当天的日志:这样子保护原来的日志,又能进行当天的调试
This commit is contained in:
parent
43c5feb1f7
commit
8b6750c1ed
|
@ -1,7 +1,7 @@
|
|||
# 显示和清理系统日志
|
||||
class SystemLogController < ApplicationController
|
||||
|
||||
before_filter :require_admin
|
||||
before_filter :require_login
|
||||
# 默认每页显示20条记录
|
||||
PER_PAGE = 20
|
||||
layout "base"
|
||||
|
@ -14,8 +14,8 @@
|
|||
end
|
||||
|
||||
#清除日志
|
||||
def clear day
|
||||
SystemLog.clear day
|
||||
def clear
|
||||
SystemLog.clear params[:day]
|
||||
redirect_to :action => :index
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue