Method: Risky#validate

Defined in:
lib/risky.rb

#validateObject

Determines whether the model is valid. Sets the contents of #errors if invalid.



543
544
545
546
547
# File 'lib/risky.rb', line 543

def validate
  if key.blank?
    errors[:key] = 'is missing'
  end
end