Use a preinitializer to load the settings from application.yml so that they are available as early as possible. All settings can also be overridden using environment variables. The ad-hoc settins in environment.rb are then moved to this new system so we have one consistent location for settings.
7 lines
139 B
Text
7 lines
139 B
Text
<% if STATUS == :database_offline %>
|
|
<p><%= t 'layouts.osm_offline' %>
|
|
</p>
|
|
<% else %>
|
|
<p><%= t 'layouts.osm_read_only' %>
|
|
</p>
|
|
<% end %>
|