ecto_ranked v0.1.0-alpha.1 EctoRanked

EctoRanked uses a rank column to provides changeset methods for updating ordering an ordering column

Summary

Functions

Updates the given changeset with the appropriate ranking, and updates/ranks the other items in the list as necessary

Functions

before_insert(cs, scope_field)
before_update(cs, scope_field)
set_rank(changeset, scope_field)

Updates the given changeset with the appropriate ranking, and updates/ranks the other items in the list as necessary.