module ProMotion::Table::Indexable
Public Instance Methods
table_data_index()
click to toggle source
# File lib/ProMotion/table/extensions/indexable.rb, line 4 def table_data_index return nil if self.promotion_table_data.filtered? || !self.class.get_indexable index = self.promotion_table_data.sections.collect{ |section| (section[:title] || " ")[0] } || [] index.unshift("{search}") if self.class.get_searchable index end