Class: Rack::Passbook::Pass

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/rack/passbook/models/pass.rb

Instance Method Summary collapse

Instance Method Details

#validateObject


18
19
20
21
22
23
24
# File 'lib/rack/passbook/models/pass.rb', line 18

def validate
  super

  validates_presence %i[pass_type_identifier serial_number]
  validates_unique :pass_type_identifier
  validates_unique %i[serial_number pass_type_identifier]
end