Learning loads about YAML and now it's working - sort of.
This commit is contained in:
@@ -2,7 +2,7 @@ class HomeController < ApplicationController
|
||||
def index
|
||||
if user_signed_in?
|
||||
if current_user.admin?
|
||||
|
||||
@file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml')
|
||||
else
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user