X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..0e2a66e8de55b3719bd307261058b7f898598994:/lib/classic_pagination/pagination.rb diff --git a/lib/classic_pagination/pagination.rb b/lib/classic_pagination/pagination.rb index dbeaf5a40..161cc7fc7 100644 --- a/lib/classic_pagination/pagination.rb +++ b/lib/classic_pagination/pagination.rb @@ -309,6 +309,7 @@ module ActionController @number = 1 unless @paginator.has_page_number? @number end attr_reader :paginator, :number + alias to_i number # Compares two Page objects and returns true when they represent the @@ -393,7 +394,7 @@ module ActionController @page = page self.padding = padding end - attr_reader :paginator, :page + attr_reader :paginator, :page, :padding, :first, :last # Sets the window's padding (the number of pages on either side of the # window page). @@ -411,7 +412,6 @@ module ActionController @paginator.last end end - attr_reader :padding, :first, :last # Returns an array of Page objects in the current window. def pages