require 'delayed_job'
require 'English'
require 'delayed_cron_job/cronline'
require 'delayed_cron_job/plugin'
require 'delayed_cron_job/version'

module DelayedCronJob

end

if defined?(Delayed::Backend::Mongoid)
  Delayed::Backend::Mongoid::Job.field :cron, :type => String
end

DelayedCronJob::Plugin.callback_block.call(Delayed::Worker.lifecycle)

require 'delayed_job'
require 'English'
require 'delayed_cron_job/cronline'
require 'delayed_cron_job/plugin'
require 'delayed_cron_job/version'

module DelayedCronJob

end

if defined?(Delayed::Backend::Mongoid)
  Delayed::Backend::Mongoid::Job.field :cron, :type => String
  Delayed::Backend::Mongoid::Job.attr_accessible(:cron)
end

if defined?(Delayed::Backend::ActiveRecord)
  Delayed::Backend::ActiveRecord::Job.attr_accessible(:cron)
end

DelayedCronJob::Plugin.callback_block.call(Delayed::Worker.lifecycle)

Set cron to be an accessible attribute
Set cron to be an accessible attribute
