EXAMPLES.md in angularjs-rails-resource-1.1.1 vs EXAMPLES.md in angularjs-rails-resource-1.2.0

- old
+ new

@@ -131,19 +131,19 @@ angular.module('book.services', ['rails']); angular.module('book.services').factory('Book', ['railsResourceFactory', '$http', function (railsResourceFactory, $http) { var resource = railsResourceFactory({url: '/books', name: 'book'}); resource.prototype.getReferences = function () { var self = this; - return resource.$get(self.$url('references'))).then(function (references) { + return resource.$get(self.$url('references')).then(function (references) { self.references = references; return self.references; }); }; }]); # Specifying Transformer Transformers can be specified by an array of transformers in the configuration options passed to railsResourceFactory. -However, a cleaner eway to write it is to use the <code>beforeRequest</code> which can take a new anonymous function or +However, a cleaner way to write it is to use the <code>beforeRequest</code> which can take a new anonymous function or a function returned by a factory if you want to share a transformer across multiple resources. Both of these examples can be accomplished using the serializers now. angular.module('test').factory('excludePrivateKeysTransformer', function () {