lib/ProMotion/table/table.rb in ProMotion-1.0.1 vs lib/ProMotion/table/table.rb in ProMotion-1.0.2

- old
+ new

@@ -58,10 +58,11 @@ def searching? @promotion_table_data.filtered end def update_table_view_data(data) + create_table_view_from_data(data) unless @promotion_table_data @promotion_table_data.data = data table_view.reloadData end # Methods to retrieve data @@ -102,10 +103,10 @@ end end def delete_row(index_paths, animation = nil) animation = map_row_animation_symbol(animation) - index_paths = Array(index_paths) + index_paths = [index_paths] if index_paths.kind_of?(NSIndexPath) deletable_index_paths = [] index_paths.each do |index_path| delete_cell = false delete_cell = send(:on_cell_deleted, @promotion_table_data.cell(index_path: index_path)) if self.respond_to?("on_cell_deleted:")