Class: Validations::WithValidator

Inherits:
EachValidator
  • Object
show all
Defined in:
lib/strobe/validations.rb

Instance Method Summary collapse

Instance Method Details

#validate_each(record, attr, val) ⇒ Object



10
11
12
# File 'lib/strobe/validations.rb', line 10

def validate_each(record, attr, val)
  record.send options[:method]
end