Load map key data in controller

This commit is contained in:
Anton Khorev 2023-12-08 12:55:18 +03:00
parent e78aee9585
commit 9ac70151a8
2 changed files with 5 additions and 4 deletions

View file

@ -48,6 +48,7 @@ class SiteController < ApplicationController
def key
expires_in 7.days, :public => true
@key = YAML.load_file(Rails.root.join("config/key.yml"))
render :layout => false
end