1class ApplicationJob < ActiveJob::Base
 
2  before_perform :reload_site
 
3  before_perform :reload_parliament
 
4
 
5  private
 
6
  • UtilityFunction - doesn't depend on instance state (maybe move it to another class?) » reek
  • Complexity 1 » saikuro
7  def reload_site
 
8    Site.reload
 
 9  end
 
  • UtilityFunction - doesn't depend on instance state (maybe move it to another class?) » reek
  • Complexity 1 » saikuro
11  def reload_parliament
 
12    Parliament.reload
 
13  end
 
14end