lib/pagy.rb in pagy-8.4.4 vs lib/pagy.rb in pagy-8.4.5
- old
+ new
@@ -3,22 +3,21 @@
require 'pathname'
# Core class
class Pagy
- VERSION = '8.4.4'
+ VERSION = '8.4.5'
# Gem root pathname to get the path of Pagy files stylesheets, javascripts, apps, locales, etc.
def self.root
@root ||= Pathname.new(__dir__).parent.freeze
end
- # Core defult: constant for easy access, but mutable for customizable defaults
+ # Core default: constant for easy access, but mutable for customizable defaults
DEFAULT = { page: 1, # rubocop:disable Style/MutableConstant
items: 20,
outset: 0,
size: 7,
- cycle: false,
count_args: [:all], # AR friendly
page_param: :page }
attr_reader :count, :page, :items, :vars, :last, :offset, :in, :from, :to, :prev, :next
alias pages last