Sha256: 99169b12b0aa1decb1be46f1d5b8bc9566b8edaa6ea52da3f8372db1fe98a45d
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
require 'active_support/configurable' module ApiPaginationHeaders # Configures global settings for ApiPaginationHeaders # ApiPaginationHeaders.configure do |config| # config.total_count_header = 'X-Total-Count' # end def self.configure(&block) yield @config ||= ApiPaginationHeaders::Configuration.new end # Global settings for ApiPaginationHeaders def self.config @config ||= ApiPaginationHeaders::Configuration.new end class Configuration #:nodoc: include ActiveSupport::Configurable TOTAL_COUNT_HEADER = 'Total-Count' config_accessor(:total_count_header) { TOTAL_COUNT_HEADER } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api_pagination_headers-2.0.1 | lib/api_pagination_headers/config.rb |
api_pagination_headers-2.0.0 | lib/api_pagination_headers/config.rb |