import DS from 'ember-data';

var SiteSerializer = DS.RESTSerializer.extend({
  serialize: function(site, options) {
    var fields = [ 'name', 'tagline', 'description', 'moreDesc', 'joinText' ];
    var result = { };

    fields.forEach(function(field) {
      result[field] = site.get(field);
    });

    if (options && options.includeId) {
      result['id'] = site.get('id');
    }

    return result;
  }
});

export default SiteSerializer;

@@ -32,233 +32,186 @@
 ar S
-iteSerializer = DS.RESTSerializer.extend(%7B%0A  serialize: function(site, options) %7B%0A    var fields = %5B 'name', 'tagline', 'description', 'moreDesc', 'joinText' %5D;%0A    var result = %7B %7D;%0A%0A    fields.forEach(function(field
+ITE_SERIALIZER_FIELDS = %5B 'name', 'tagline', 'description', 'moreDesc', 'joinText' %5D;%0A%0Avar SiteSerializer = DS.RESTSerializer.extend(%7B%0A  serialize: function(site, options
 ) %7B%0A    
   re
@@ -210,23 +210,18 @@
     
- 
+var
  result
-%5Bfield%5D
  = s
@@ -231,22 +231,41 @@
 .get
-(field);%0A    %7D
+Properties(SITE_SERIALIZER_FIELDS
 );%0A%0A

Use more idiomatic ember api