Sha256: f4ec4be470102c429f169fab0351b3a059312cdf169dc9470e116b47d9b04ca9
Contents?: true
Size: 522 Bytes
Versions: 17
Compression:
Stored size: 522 Bytes
Contents
require 'json' module Khronos class Storage module Adapter module ActiveRecord class Schedule < ::ActiveRecord::Base attr_accessible :context, :at, :recurrency, :task_url, :callbacks, :active has_many :logs, :class_name => ScheduleLog def callbacks=(options) write_attribute(:callbacks, options.to_json) end def callbacks JSON.parse(read_attribute(:callbacks) || '{}') end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems