downcase usernames from the admins section in the AppConfig

This commit is contained in:
MrZYX 2011-03-09 18:30:21 +01:00
parent ef58c5f13d
commit b21ea3c85a

View file

@ -19,6 +19,7 @@ class AppConfig
generate_pod_uri
normalize_pod_url
check_pod_uri
downcase_admins
end
def self.load_config_for_environment(env)
@ -60,6 +61,11 @@ class AppConfig
end
end
def self.downcase_admins
self.config_vars[:admins].collect! {|admin| admin.downcase}
end
def self.load_config_yaml filename
YAML.load(File.read(filename))
end