docs
This commit is contained in:
parent
58976b8904
commit
bb19ddcfa9
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ defmodule Pinchflat.Media.MediaQuery do
|
||||||
|
|
||||||
alias Pinchflat.Media.MediaItem
|
alias Pinchflat.Media.MediaItem
|
||||||
|
|
||||||
|
# This allows the module to be aliased and query methods to be used
|
||||||
|
# all in one go
|
||||||
|
# usage: use Pinchflat.Media.MediaQuery
|
||||||
defmacro __using__(_opts) do
|
defmacro __using__(_opts) do
|
||||||
quote do
|
quote do
|
||||||
import Ecto.Query, warn: false
|
import Ecto.Query, warn: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue