Guest User

Untitled

a guest
Dec 2nd, 2013
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. App = Ember.Application.create();
  2.  
  3. App.Router.map(function() {
  4.   this.resource('users');
  5.   this.resource('departments');
  6. });
  7.  
  8. App.ApplicationAdapter = DS.RESTAdapter.extend();
  9.  
  10. App.Store = DS.Store.extend({
  11.     adapter: 'App.ApplicationAdapter'
  12. });
  13.  
  14.  
  15. DS.RESTAdapter.reopen({
  16.   url: 'http://localhost/service_r/index.php'
  17. });
  18.  
  19.  
  20. App.User = DS.Model.extend({
  21.   username     : DS.attr(),
  22.   full_name    : DS.attr(),
  23.   email        : DS.attr(),
  24.   password     : DS.attr()
  25. });
  26.  
  27. App.Department = DS.Model.extend({
  28.     departmentname : DS.attr()
  29. });
Advertisement
Add Comment
Please, Sign In to add comment