lib/ProMotion/table/table.rb in ProMotion-2.4.1 vs lib/ProMotion/table/table.rb in ProMotion-2.4.2
- old
+ new
@@ -212,10 +212,10 @@
table_view.deselectRowAtIndexPath(index_path, animated: true) unless data_cell[:keep_selection] == true
trigger_action(data_cell[:action], data_cell[:arguments], index_path) if data_cell[:action]
end
def tableView(_, canEditRowAtIndexPath:index_path)
- data_cell = self.promotion_table_data.cell(index_path: index_path, unfiltered: true)
+ data_cell = cell_at(index_path: index_path, unfiltered: true)
[:insert,:delete].include?(data_cell[:editing_style])
end
def tableView(_, editingStyleForRowAtIndexPath: index_path)
data_cell = cell_at(index_path: index_path, unfiltered: true)