Sha256: ef6c96d7594c2db630797cf4d5a36141401bb483bdf32bdaf1512dbd3e468e32

Contents?: true

Size: 508 Bytes

Versions: 4

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require_relative './record_range_for_helper'
require_relative './record_size_for_helper'

module Pagination
  module RecordDescriptionForHelper
    include Pagination::RecordRangeForHelper
    include Pagination::RecordSizeForHelper

    def pagination_record_description_for(set)
      [
        pagination_record_range_for(set),
        'of',
        "<strong>#{pagination_record_size_for(set)}</strong>",
        'records'
      ].join('&nbsp;').html_safe
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/pagination/record_description_for_helper.rb
actionset-0.10.0 lib/action_set/helpers/pagination/record_description_for_helper.rb
actionset-0.9.2 lib/action_set/helpers/pagination/record_description_for_helper.rb
actionset-0.9.1 lib/action_set/helpers/pagination/record_description_for_helper.rb