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-1.1.2 | app/models/naf/janitorial_assignment.rb |
naf-1.1.1 | app/models/naf/janitorial_assignment.rb |
naf-1.1.0 | app/models/naf/janitorial_assignment.rb |