admin/logs viewer implemented
This commit is contained in:
parent
79bf7a2276
commit
b1dbcef80b
8 changed files with 27 additions and 15 deletions
|
|
@ -10,7 +10,7 @@ class Log < ApplicationRecord
|
|||
validates :level, inclusion: { in: ['info', 'error'] }
|
||||
|
||||
default_scope {
|
||||
order('created_at ASC')
|
||||
order('id DESC')
|
||||
}
|
||||
|
||||
def self.log(message, section='frontend', level='info')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue