Class: Goz::EventType

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/goz/event_type.rb

Overview

Goz::EventType - Goz event type

Author

blair christensen. <[email protected]>

Homepage

github.com/blairc/goz/

Constant Summary collapse

TYPES =
EventType.map(:name)

Instance Method Summary collapse

Instance Method Details

#validateObject

Perform model valiations.



29
30
31
32
33
34
# File 'lib/goz/event_type.rb', line 29

def validate
  super
  validates_presence  [ :name ]
  validates_type      Time, [ :created_at ]
  validates_unique    [ :name ]
end