module HireFire::Macro::Helpers::GoodJob
Public Class Methods
Source
# File lib/hirefire/macro/helpers/good_job.rb, line 5 def self.included(base) base.send(:private, :good_job_class) end
Public Instance Methods
Source
# File lib/hirefire/macro/helpers/good_job.rb, line 17 def error_event_supported? Gem::Version.new(::GoodJob::VERSION) >= Gem::Version.new("3.0.0") end
Source
# File lib/hirefire/macro/helpers/good_job.rb, line 9 def good_job_class if Gem::Version.new(::GoodJob::VERSION) >= Gem::Version.new("4.0.0") ::GoodJob::Job else ::GoodJob::Execution end end