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

Version Path
coupler-0.0.9-java lib/coupler/models/jobify.rb
coupler-0.0.8-java lib/coupler/models/jobify.rb
coupler-0.0.7-java lib/coupler/models/jobify.rb
coupler-0.0.6-java lib/coupler/models/jobify.rb
coupler-0.0.4-java lib/coupler/models/jobify.rb
coupler-0.0.3-java lib/coupler/models/jobify.rb
coupler-0.0.2-java lib/coupler/models/jobify.rb
coupler-0.0.1-java lib/coupler/models/jobify.rb