mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-12 17:14:22 +01:00
preload tag
This commit is contained in:
parent
4b124160ad
commit
d2e7afb3c7
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ defmodule PhilomenaWeb.DnpEntryController do
|
||||||
alias Philomena.Repo
|
alias Philomena.Repo
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
plug :load_and_authorize_resource, model: DnpEntry, only: [:show]
|
plug :load_and_authorize_resource, model: DnpEntry, only: [:show], preload: [:tag]
|
||||||
|
|
||||||
def index(conn, _params) do
|
def index(conn, _params) do
|
||||||
dnp_entries =
|
dnp_entries =
|
||||||
|
|
Loading…
Reference in a new issue