Module: Delay::Validation::ClassMethods

Defined in:
lib/delay.rb

Instance Method Summary collapse

Instance Method Details

#validates_delay_format_of(*attr_names) ⇒ Object


152
153
154
155
156
157
# File 'lib/delay.rb', line 152

def validates_delay_format_of(*attr_names)
  for attr_name in attr_names
    validates attr_name, delay: true
  end
  # validates_with ActiveRecord::Base::DelayFormatValidator, *attr_names
end