Skip to content

Commit

Permalink
use SiteSettings.fetch instead of find
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 19, 2020
1 parent 6309fc9 commit 0dde0fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/pages/home.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
-#
-# SPDX-License-Identifier: AGPL-3.0-or-later
- intro_background_setting = SiteSetting.find_by(key: 'intro_background')
- intro_text_setting = SiteSetting.find_by(key: 'intro')
- intro_background_setting = SiteSettings.fetch('intro_background')
- intro_text_setting = SiteSettings.fetch('intro')

- content_for(:hero_head) do
= render partial: 'shared/hero_head_image_title',
Expand Down

0 comments on commit 0dde0fb

Please sign in to comment.