use dsl method

pull/6827/head
Tim Felgentreff 14 years ago
parent d2b2d5c889
commit 838bc8c245
  1. 4
      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

Loading…
Cancel
Save