From 838bc8c245a36ca279c60cbc2ded33b8c7a51f73 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Thu, 7 Apr 2011 12:32:20 +0200 Subject: [PATCH] use dsl method --- lib/widget/table/progressbar.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/widget/table/progressbar.rb b/lib/widget/table/progressbar.rb index da9c4f3bc6..b5679beb1c 100644 --- a/lib/widget/table/progressbar.rb +++ b/lib/widget/table/progressbar.rb @@ -1,9 +1,7 @@ class Widget::Table::Progressbar < Widget::Base THRESHHOLD = 500 - def cache? - false - end + dont_cache! def render if Widget::Table::ReportTable.new(@query).cached? || (size = @query.size) <= THRESHHOLD