Sha256: b758d187ae8c14b08776417ce5828c049968f7166b7487e87095a48ec50b5add
Contents?: true
Size: 476 Bytes
Versions: 8
Compression:
Stored size: 476 Bytes
Contents
module Coupler module Models module Jobify def self.included(base) base.one_to_many :jobs base.one_to_many(:running_jobs, { :class => "Coupler::Models::Job", :conditions => { :status => 'running' }, :read_only => true }) base.one_to_many(:scheduled_jobs, { :class => "Coupler::Models::Job", :conditions => { :status => 'scheduled' }, :read_only => true }) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems