Class: Goz::EventType
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Goz::EventType
- Defined in:
- lib/goz/event_type.rb
Overview
Constant Summary collapse
- TYPES =
EventType.map(:name)
Instance Method Summary collapse
-
#validate ⇒ Object
Perform model valiations.
Instance Method Details
#validate ⇒ Object
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 |