title: How to retrieve all properties of an Ember.js model
body: <p>I'm working with forms in Ember.js and I want to retrieve a list of all model properties so that I can take snapshots of the state of the form at different moments. Is there a way to get a list of all properties of a model?</p>
  
  <p>For example, if my model is:</p>
  
  <pre><code>App.User = DS.Model.extend({
    name: DS.attr('string'),
    email: DS.attr('string'),
    current_password: DS.attr('string'),
    password: DS.attr('string'),
    password_confirmation: DS.attr('string'),
    admin: DS.attr('boolean'),
  }
  </code></pre>
  
  <p>Then I would like to have something like this:</p>
  
  <pre><code>&gt; getEmberProps('User')
  
  ["name", "email", "current_password", "password", "password_confirmation", "admin"]
  </code></pre>