Module: Delay::Validation::ClassMethods

Defined in:
lib/delay.rb

Instance Method Summary collapse

Instance Method Details

#validates_delay_format_of(*attr_names) ⇒ Object


167
168
169
170
171
172
# File 'lib/delay.rb', line 167

def validates_delay_format_of(*attr_names)
  attr_names.each do |attr_name|
    validates attr_name, delay: true
  end
  # validates_with ActiveRecord::Base::DelayFormatValidator, *attr_names
end