refactors settings/flags helper to memoize values

This commit is contained in:
Juanjo Bazán
2016-02-04 17:29:05 +01:00
committed by Juanjo Bazán
parent 90f79e4bd5
commit 0325dd6199
16 changed files with 72 additions and 35 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><%= content_for?(:title) ? yield(:title) : Setting['org_name'] %></title>
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vendor/modernizr" %>
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
@@ -16,7 +16,7 @@
type: "image/png" %>
<%= content_for :social_media_meta_tags %>
<%= Setting['per_page_code'].try(:html_safe) %>
<%= setting['per_page_code'].try(:html_safe) %>
</head>
<body>