mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +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
|
||||
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
|
||||
dnp_entries =
|
||||
|
|
Loading…
Reference in a new issue