diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-12-04 11:55:24 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-12-04 11:55:24 +0000 |
commit | 43e9b5101fc290db2ea1c2a9c3bfc3e11aee0e32 (patch) | |
tree | 27813a2d32a2ae86c7cd479b9b4c885c0108c863 /lib/mauve/history.rb | |
parent | 2c843719f0776baa28099d15a58768a6ddefa94f (diff) |
Added "eager" loading when looking at event histories.
Diffstat (limited to 'lib/mauve/history.rb')
-rw-r--r-- | lib/mauve/history.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mauve/history.rb b/lib/mauve/history.rb index 674099f..fa5078d 100644 --- a/lib/mauve/history.rb +++ b/lib/mauve/history.rb @@ -116,6 +116,16 @@ module Mauve public + def cached_alerts + return @cached_alerts if defined? @cached_alerts + @cached_alerts = [] + end + + def reload + @cached_alerts = [] + super + end + # @return Log4r::Logger def logger Log4r::Logger.new self.class.to_s |