Sha256: 4f69b3ff3d1321553fba9157ffbf4491bb399ad44cdffca838f14e91020cfb10

Contents?: true

Size: 968 Bytes

Versions: 23

Compression:

Stored size: 968 Bytes

Contents

module Naf
  class JanitorialAssignment < ::Naf::NafBase

    #----------------------
    # *** Class Methods ***
    #++++++++++++++++++++++

    def self.enabled
      return where("enabled")
    end

    def self.pickleables(pickler)
      old_model_names = ['::Naf::Job',
                         '::Naf::JobCreatedAt',
                         '::Naf::JobPrerequisite',
                         '::Naf::JobAffinityTab']
      return where('model_name NOT IN (?)', old_model_names)
    end

    #-------------------------
    # *** Instance Methods ***
    #+++++++++++++++++++++++++

    def target_model
      return model_name.constantize rescue nil
    end

    def self.pickleables(pickler)
      old_model_names = ['::Naf::Job',
                         '::Naf::JobCreatedAt',
                         '::Naf::JobPrerequisite',
                         '::Naf::JobAffinityTab']
      return where('model_name NOT IN (?)', old_model_names)
    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 app/models/naf/janitorial_assignment.rb
naf-2.1.12 app/models/naf/janitorial_assignment.rb
naf-2.1.11 app/models/naf/janitorial_assignment.rb
naf-2.1.10 app/models/naf/janitorial_assignment.rb
naf-2.1.9 app/models/naf/janitorial_assignment.rb
naf-2.1.8 app/models/naf/janitorial_assignment.rb
naf-2.1.6 app/models/naf/janitorial_assignment.rb
naf-2.1.5 app/models/naf/janitorial_assignment.rb
naf-2.1.4 app/models/naf/janitorial_assignment.rb
naf-2.1.3 app/models/naf/janitorial_assignment.rb
naf-2.1.2 app/models/naf/janitorial_assignment.rb
naf-2.1.1 app/models/naf/janitorial_assignment.rb
naf-2.1.0 app/models/naf/janitorial_assignment.rb
naf-2.0.4 app/models/naf/janitorial_assignment.rb
naf-2.0.3 app/models/naf/janitorial_assignment.rb
naf-2.0.2 app/models/naf/janitorial_assignment.rb
naf-2.0.1 app/models/naf/janitorial_assignment.rb
naf-2.0.0 app/models/naf/janitorial_assignment.rb
naf-1.1.4 app/models/naf/janitorial_assignment.rb
naf-1.1.3 app/models/naf/janitorial_assignment.rb