Sha256: 27d651b47a848ddbed3b25757d03bc6ba387a995b90debe57906b1735a8ed883
Contents?: true
Size: 1.04 KB
Versions: 23
Compression:
Stored size: 1.04 KB
Contents
module Naf class ApplicationRunGroupRestriction < NafBase # Protect from mass-assignment issue attr_accessible :application_run_group_restriction_name #--------------------- # *** Associations *** #+++++++++++++++++++++ has_many :application_schedules, class_name: '::Naf::ApplicationSchedule' has_many :historical_jobs, class_name: '::Naf::HistoricalJob' #-------------------- # *** Validations *** #++++++++++++++++++++ validates :application_run_group_restriction_name, presence: true #------------------------- # *** Class Methods *** #+++++++++++++++++++++++++ def self.no_limit @no_limit ||= find_by_application_run_group_restriction_name('no limit') end def self.limited_per_machine @limited_per_machine ||= find_by_application_run_group_restriction_name('limited per machine') end def self.limited_per_all_machines @limited_per_all_machines ||= find_by_application_run_group_restriction_name('limited per all machines') end end end
Version data entries
23 entries across 23 versions & 1 rubygems