Module: IceCube::Validations::ScheduleLock

Included in:
IceCube::ValidatedRule
Defined in:
lib/ice_cube/validations/schedule_lock.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#schedule_lock(*types) ⇒ Object

Lock the given times down the schedule’s start_time for that position These locks are all clobberable by other rules of the same #type using clobber_base_validation



8
9
10
11
12
# File 'lib/ice_cube/validations/schedule_lock.rb', line 8

def schedule_lock(*types)
  types.each do |type|
    validations_for(:"base_#{type}") << Validation.new(type)
  end
end