Updated

app/jobs / application_job.rb

A
14 lines of codes
2 methods
1.0 complexity/method
2 churn
2.0 complexity
0 duplications
class ApplicationJob < ActiveJob::Base
  1. ApplicationJob has no descriptive comment
before_perform :reload_site before_perform :reload_parliament private def reload_site
  1. ApplicationJob#reload_site doesn't depend on instance state (maybe move it to another class?)
Site.reload end def reload_parliament
  1. ApplicationJob#reload_parliament doesn't depend on instance state (maybe move it to another class?)
Parliament.reload end end