Move site-specific configuration out of environment.rb into a YAML file. This allows us to ship environment.rb with Tracks. Fixes #813.

This commit is contained in:
Eric Allen 2009-01-23 13:13:28 -05:00
parent 00e1d2994b
commit 2ee84b8162
11 changed files with 71 additions and 60 deletions

View file

@ -1,20 +1,15 @@
module Tracks
class Config
def self.salt
SALT
SITE_CONFIG['salt']
end
def self.auth_schemes
AUTHENTICATION_SCHEMES
SITE_CONFIG['authentication_schemes'] || []
end
def self.openid_enabled?
auth_schemes.include?('open_id')
end
end
end