Module: ProMotion::Table::Indexable
- Included in:
- ProMotion::Table
- Defined in:
- lib/ProMotion/table/extensions/indexable.rb
Instance Method Summary collapse
Instance Method Details
#table_data_index ⇒ Object
4 5 6 7 8 9 10 |
# 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 |