app/cyclid_ui/config.rb in cyclid-ui-0.1.1 vs app/cyclid_ui/config.rb in cyclid-ui-0.2.0

- old
+ new

@@ -18,11 +18,11 @@ module Cyclid module UI # Cyclid UI configuration class Config - attr_reader :memcached, :log, :server_api, :client_api + attr_reader :memcached, :log, :server_api, :client_api, :signup def initialize(path) # Try to load the configuration file. If it can't be loaded, we'll # fall back to defaults begin @@ -54,9 +54,11 @@ elsif api.is_a? Hash @server_api = URI(api['server']) @client_api = URI(api['client']) end + # URL of the signup link, if one is defined + @signup = manage['signup'] || nil rescue StandardError => ex abort "Failed to load configuration file #{path}: #{ex}" end end end