Guest User

Untitled

a guest
Aug 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (function() {
  2. this.Restaurant.Payment = Restaurant.Record.extend({
  3. amount: SC.Record.attr(Number),
  4. type: SC.Record.attr(String),
  5. serialized: SC.Record.attr(String),
  6. created_at: SC.Record.attr(SC.DateTime),
  7. updated_at: SC.Record.attr(SC.DateTime),
  8. bill: SC.Record.toOne('Restaurant.Bill', {
  9. key: 'bill_id',
  10. inverse: 'payments'
  11. })
  12. });
  13. this.Restaurant.Payment.reopenClass({
  14. resource: 'payments'
  15. });
  16. }).call(this);
Add Comment
Please, Sign In to add comment