Sha256: 75df22612abd0bd743f7d91919e359615d53a5180a71a3ad832711b8869d73f6

Contents?: true

Size: 363 Bytes

Versions: 10

Compression:

Stored size: 363 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

10 entries across 10 versions & 1 rubygems

Version Path
ProMotion-2.0.0.rc4 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.0.rc3 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.0.rc2 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.0.rc1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.2.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.2.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.1.2 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.1.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.1.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-1.1.0.rc1 lib/ProMotion/table/extensions/indexable.rb