diff --git a/CHANGELOG b/CHANGELOG index c169c763..89b65dde 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,8 @@ Vice versa: if the TO field is set to a value before FROM, FROM is set to the va Wice::Defaults::DATEPICKER_YEAR_RANGE added to the config to define the default year range in Datepicker (https://github.com/leikind/wice_grid/issues/61) +support for Ruby 2.0 + 3.2.1 action_column can now also take a block. If the block returns a falsy value, no checkbox will be rendered. diff --git a/lib/wice_grid_spreadsheet.rb b/lib/wice_grid_spreadsheet.rb index 0563c1f0..639d25f9 100644 --- a/lib/wice_grid_spreadsheet.rb +++ b/lib/wice_grid_spreadsheet.rb @@ -6,7 +6,7 @@ class Spreadsheet #:nodoc: attr_reader :tempfile # CSV in 1.9.1 is a version of FasterCSV - if RUBY_VERSION =~ /1\.9\./ + if RUBY_VERSION =~ /^1\.9\./ || RUBY_VERSION =~ /^2\./ def initialize(name, field_separator) #:nodoc: @tempfile = Tempfile.new(name)