lib/ProMotion/table/extensions/indexable.rb in ProMotion-2.7.0 vs lib/ProMotion/table/extensions/indexable.rb in ProMotion-2.7.1
- old
+ new
@@ -1,9 +1,9 @@
module ProMotion
module Table
module Indexable
def table_data_index
- return nil if self.promotion_table_data.filtered || !self.class.get_indexable
+ 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