Sequel guards primary keys against mass assignment, so passing uuid: to Invoice.new raised MassAssignmentRestriction and turned every invoice creation into a 500. Build the instance with the rest of the fields, then set uuid as an attribute before returning. |
||
|---|---|---|
| .. | ||
| admin_auth.rb | ||
| db.rb | ||
| invoice.rb | ||
| invoice_pdf.rb | ||
| mailer.rb | ||
| rate_limit.rb | ||
| s3.rb | ||