diff --git a/lib/ProMotion/table/extensions/indexable.rb b/lib/ProMotion/table/extensions/indexable.rb index 205c852..613460d 100644 --- a/lib/ProMotion/table/extensions/indexable.rb +++ b/lib/ProMotion/table/extensions/indexable.rb @@ -2,7 +2,9 @@ module ProMotion module Table module Indexable def table_data_index - @promotion_table_data.filtered ? nil : @promotion_table_data.sections.collect{ |section| section[:title][0] } + index = @promotion_table_data.filtered ? nil : @promotion_table_data.sections.collect{ |section| section[:title][0] } + index.unshift("{search}") if self.class.get_searchable + index end end end