lib/ProMotion/table/extensions/indexable.rb in ProMotion-2.0.0.rc4 vs lib/ProMotion/table/extensions/indexable.rb in ProMotion-2.0.0.rc5

- old
+ new

@@ -2,10 +2,10 @@ module Table module Indexable 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 = self.promotion_table_data.sections.collect{ |section| (section[:title] || " ")[0] } || [] index.unshift("{search}") if self.class.get_searchable index end end end