Sha256: e68ade8a00773a06a614bdf53eea00ea2c2af3db3045f120c613bd63bd506a25

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

module ProMotion
  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.unshift("{search}") if self.class.get_searchable
        index
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ProMotion-3.0.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.8.2 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.8.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.8.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.7.1 lib/ProMotion/table/extensions/indexable.rb