Adjust naming of user and model attributes

- Remove unnecessary attributes that cause additional SQL queries
- Remove unneeded check for nil on current_item
This commit is contained in:
BrokenEagle
2020-01-05 19:41:45 +00:00
parent 4b904dff5a
commit 5e03c3d84e
5 changed files with 6 additions and 6 deletions

View File

@@ -75,7 +75,7 @@
<%= yield :html_header %>
<%= raw Danbooru.config.custom_html_header_content %>
</head>
<%= tag.body **body_attributes(CurrentUser.user, (defined?(@current_item) ? @current_item : nil)) do %>
<%= tag.body **body_attributes(CurrentUser.user, @current_item) do %>
<%= render "news_updates/listing" %>
<header id="top">