diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-27 12:00:39 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-27 12:00:39 +0200 |
commit | ac5a07c294bba699d6517d5be1548a33455b87c8 (patch) | |
tree | 5ad284a26e4ae0772945e2400c9d10079f317882 /lib/environment.rb | |
parent | afa31803afd167c19c9ba95e73d311c9e2b8b43a (diff) |
change tasks: remove tree structure, add max wait time
Diffstat (limited to 'lib/environment.rb')
-rw-r--r-- | lib/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/environment.rb b/lib/environment.rb index 27235c3..c86d2be 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -40,6 +40,9 @@ if @@config[:database] end end +# hack: store sinatra in global var to make url_for and halt methods accessible +before {$sinatra = self unless $sinatra} + class Sinatra::Base # overwriting halt to log halts (!= 202) def halt(status,msg) |