# File lib/new_relic/agent/samplers/delayed_job_sampler.rb, line 52 def count(query) if ::ActiveRecord::VERSION::MAJOR.to_i < 4 ::Delayed::Job.count(:conditions => query) else ::Delayed::Job.where(query).count end end