Sha256: 236f753e426a2b5c14f80541fc6dfdf18448bb9e91413847cb8cb0f0b942ec6d

Contents?: true

Size: 378 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
ProMotion-2.7.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.6.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.6.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.5.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.5.0.beta1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.4.2 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.4.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.4.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.3.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.3.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.2.2 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.2.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.2.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.1.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.1.0.beta1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.1 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.0 lib/ProMotion/table/extensions/indexable.rb
ProMotion-2.0.0.rc5 lib/ProMotion/table/extensions/indexable.rb