Skip to content

Commit 25c9f5d

Browse files
committed
Merge pull request mgonto#842 from omfgitsjack/patch-1
Update README.md, setParentless description
2 parents 4c9bfd4 + 51df917 commit 25c9f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ These are the fields that you want to save from your parent resources if you nee
323323
#### setParentless
324324
Use this property to control whether Restangularized elements to have a parent or not. So, for example if you get an account and then get a nested list of buildings, you may want the buildings URL to be simple `/buildings/123` instead of `/accounts/123/buildings/123`. This property lets you do that.
325325

326-
This method accepts 2 parameters:
326+
This method accepts 1 parameter, it could be:
327327

328328
* Boolean: Specifies if all elements should be parentless or not
329329
* Array: Specifies the routes (types) of all elements that should be parentless. For example `['buildings']`

0 commit comments

Comments
 (0)