spec/support/datatable_cond_numeric.rb in ajax-datatables-rails-0.4.3 vs spec/support/datatable_cond_numeric.rb in ajax-datatables-rails-1.0.0

- old
+ new

@@ -40,10 +40,10 @@ end end class DatatableCondInWithRegex < DatatableCondIn def view_columns - super.deep_merge(post_id: { cond: :in, use_regex: false, orderable: true, formater: ->(str) { cast_regex_value(str) } }) + super.deep_merge(post_id: { cond: :in, use_regex: false, orderable: true, formatter: ->(str) { cast_regex_value(str) } }) end def cast_regex_value(value) value.split('|').map(&:to_i) end