Sha256: 9576c2566e1576109c674fde5db220b911645e2639d9292ac86c8f3d7f596346
Contents?: true
Size: 561 Bytes
Versions: 14
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true require 'pagy' # so you can require just the extra in the console require 'pagy/extras/standalone' class Pagy # include Pagy::Console in irb/rails console for a ready to use pagy environment module Console def self.included(main) main.include(Backend) main.include(Frontend) VARS[:url] = 'http://www.example.com/subdir' end def pagy_extras(*extras) extras.each {|extra| require "pagy/extras/#{extra}"} puts "Required extras: #{extras.map(&:inspect).join(', ')}" end end end
Version data entries
14 entries across 14 versions & 2 rubygems