lib/ProMotion/table/extensions/indexable.rb in ProMotion-1.0.4 vs lib/ProMotion/table/extensions/indexable.rb in ProMotion-1.1.0.rc1

- old
+ new

@@ -1,11 +1,11 @@ module ProMotion module Table module Indexable def table_data_index - return nil if @promotion_table_data.filtered || !self.class.get_indexable + return nil if self.promotion_table_data.filtered || !self.class.get_indexable - index = @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