module ProMotion::Table

This is duplicated from ProMotion in order to be call make_data_table_searchable instead of make_searchable

Public Instance Methods

set_up_searchable() click to toggle source
# File lib/project/pro_motion/table.rb, line 13
def set_up_searchable
  if self.class.respond_to?(:get_searchable) && self.class.get_searchable
    if self.is_a?(ProMotion::DataTableScreen)
      self.make_data_table_searchable(content_controller: self, search_bar: self.class.get_searchable_params)
    else
      self.make_searchable(self.class.get_searchable_params)
    end
  end
end