From d26e8f9d1328e156aaef3a9d1d044d007e890a26 Mon Sep 17 00:00:00 2001 From: Ruben M Date: Wed, 30 Sep 2015 09:51:07 +0200 Subject: [PATCH] More info Fixed a typo in Readme extends Parse.Model works with Uppercase `Model` rather then `model` Added a bit info about Parse.User --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 62ca52a..df7a9f9 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,15 @@ on the class and pass it the Parse class name, and the name of any attributes of that class Using CoffeeScript: + + +> Parse.Model +> `path "/classes/modelName"` +> That means that we will use Parse api path for classes + ```coffeescript app.factory 'Car', (Parse) -> - class Car extends Parse.model + class Car extends Parse.Model @configure "Car", "make", "model", "year" @customClassMethod: (arg) -> @@ -69,6 +75,22 @@ app.factory 'Car', (Parse) -> # add custom instance methods like this ``` +> Parse.User +> `path "/users"` +> The User class extends from Parse.Model the main difference is in the Parse api path + +```coffeescript +app.factory 'User', (Parse) -> + class User extends Parse.User + @configure "User", "users", "username", "password" + + @customClassMethod: (arg) -> + # add custom class methods like this + + customInstanceMethod: (arg) -> + # add custom instance methods like this +``` + Using JavaScript: ```javascript // Not implemented yet, sorry