From a70a4732bb097fdfd8ae49695bb3c990bd6c8548 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Mon, 3 Jun 2013 10:54:41 -0400 Subject: [PATCH] Update index_paths var assignment per @jamonholmgren's advice. --- lib/ProMotion/screens/_tables/_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProMotion/screens/_tables/_table.rb b/lib/ProMotion/screens/_tables/_table.rb index 474a254..ecbea9c 100644 --- a/lib/ProMotion/screens/_tables/_table.rb +++ b/lib/ProMotion/screens/_tables/_table.rb @@ -82,7 +82,7 @@ module ProMotion def delete_row(index_paths, animation = nil) animation ||= UITableViewRowAnimationAutomatic - index_paths = [index_paths] unless index_paths.is_a? Array + index_paths = Array(index_paths) index_paths.each do |index_path| @promotion_table_data.delete_cell(index_path: index_path)