lib/ProMotion/table/table.rb in ProMotion-2.6.1 vs lib/ProMotion/table/table.rb in ProMotion-2.7.0

- old
+ new

@@ -48,14 +48,11 @@ end end def set_up_searchable if self.class.respond_to?(:get_searchable) && self.class.get_searchable - self.make_searchable(content_controller: self, search_bar: self.class.get_searchable_params) - if self.class.get_searchable_params[:hide_initially] - self.tableView.contentOffset = CGPointMake(0, self.searchDisplayController.searchBar.frame.size.height) - end + self.make_searchable(self.class.get_searchable_params) end end def setup_search_method params = self.class.get_searchable_params @@ -150,10 +147,9 @@ def update_table_data(args = {}) args = { index_paths: args } unless args.is_a?(Hash) self.update_table_view_data(self.table_data, args) - self.promotion_table_data.search(search_string) if searching? end def toggle_edit_mode(animated = true) edit_mode({enabled: !editing?, animated: animated}) end