Class: Rack::Passbook::Pass
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Rack::Passbook::Pass
- Defined in:
- lib/rack/passbook/models/pass.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rack/passbook/models/pass.rb', line 16 def validate super validates_presence [:pass_type_identifier, :serial_number] validates_unique :pass_type_identifier validates_unique [:serial_number, :pass_type_identifier] end |