From 99370625ec6a6d72b9216660c1f1907071cd7a0c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 2 Jan 2012 15:13:33 +0100 Subject: [PATCH] Actually give access to the global configuration --- stoptime.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stoptime.rb b/stoptime.rb index ec8ee5d..ff894cc 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -137,6 +137,11 @@ module StopTime::Models load end + # Give access to the configuration. + def [](attr) + @config[attr] + end + end # class StopTime::Models::Config # == The customer class