Method: Myreplicator::HomeController#load_errors

Defined in:
app/controllers/myreplicator/home_controller.rb

#load_errorsObject



33
34
35
36
37
38
# File 'app/controllers/myreplicator/home_controller.rb', line 33

def load_errors
  @tab = 'home'
  @option = 'errors'
  @logs = Log.where("state = 'error' AND job_type = 'loader'").order("id DESC").limit(200)
  @count = Log.where("state = 'error' AND job_type = 'loader'").count
end