diff --git a/init.rb b/init.rb index a130ffe1e5..542ce30f3b 100644 --- a/init.rb +++ b/init.rb @@ -3,3 +3,8 @@ fail "upgrade ruby version, ruby < 1.8.7 suffers from Hash#hash bug" if {:a => 1 require 'big_decimal_patch' require 'to_date_patch' + +# Defines the minimum number of cells for a 'big' report +# Big reports may be handled differently in the UI - i.e. ask the user +# if he's really sure to execute such a heavy report +Widget::Table::Progressbar.const_set 'THRESHHOLD', 2000 \ No newline at end of file diff --git a/lib/widget/table/progressbar.rb b/lib/widget/table/progressbar.rb index 90f7b3e478..720ee05cab 100644 --- a/lib/widget/table/progressbar.rb +++ b/lib/widget/table/progressbar.rb @@ -1,6 +1,4 @@ class Widget::Table::Progressbar < Widget::Base - THRESHHOLD = 500 - dont_cache! def render