Skip to content

Commit 076ccfc

Browse files
committed
Add documentation for no_rank? instance method
1 parent 8cf22ce commit 076ccfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ If an update is needed, the method will return the result of `save`, otherwise `
133133
Alias to [`move_to!(0)`](#move_to!)
134134
</details>
135135

136+
<br />
137+
138+
<details>
139+
<summary><code>no_rank?</code></summary>
140+
141+
Returns true if the ranking field is `nil`. This means that the model has no rank yet.
142+
</details>
143+
136144
## Associations and Grouping
137145

138146
Often times you come in a situation where you don't want to order all items in one collection. Lexorank will take care of this by grouping your models by a specified column. This is especially interesting when your model is associated with another one.

0 commit comments

Comments
 (0)