ja_resource v0.3.1 JaResource.Repo behaviour

Summary

Callbacks

Defines the module use-ing Ecto.Repo to be used by the controller

Callbacks

repo()

Specs

repo :: module

Defines the module use-ing Ecto.Repo to be used by the controller.

Defaults to the value set in config if present:

config :ja_resource,
   repo: MyApp.Repo

Default can be overridden per controller:

def repo, do: MyApp.SecondaryRepo