Gramex.UserDataPersistencePlug (gramex v0.0.1)

View Source

Keeps user data in the database up-to-date.

Usage example:

    defmodule Gramex.UserDataPersistencePlug do
      use Plug.Builder

      plug Gramex.UserDataPlug
      plug Gramex.UserDataPersistencePlug, repo: MyApp.Repo, schema: MyApp.User, changeset: MyApp.User.changeset()
    end