Class: Wpxf::Models::Log

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/wpxf/models/log.rb

Overview

A miscellaneous log entry.

Instance Method Summary collapse

Instance Method Details

#validateObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/wpxf/models/log.rb', line 9

def validate
  super

  validates_presence :key
  validates_type String, :key
  validates_unique :key
  validates_presence :value

  validates_max_length 50, :key
  validates_max_length 100, :value
end