From 43e9b5101fc290db2ea1c2a9c3bfc3e11aee0e32 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 4 Dec 2012 11:55:24 +0000 Subject: Added "eager" loading when looking at event histories. --- lib/mauve/history.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/mauve/history.rb') 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 -- cgit v1.2.1