Fix new rubocop warnings
This commit is contained in:
parent
2f6a583510
commit
f7a35c5895
18 changed files with 45 additions and 48 deletions
|
@ -154,6 +154,8 @@ module ActionController
|
|||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def create_paginators_and_retrieve_collections #:nodoc:
|
||||
Pagination::OPTIONS[self.class].each do |collection_id, options|
|
||||
next if options[:actions] && !options[:actions].include?(action_name)
|
||||
|
@ -200,9 +202,7 @@ module ActionController
|
|||
collection.offset(paginator.current.offset).limit(options[:per_page])
|
||||
end
|
||||
|
||||
protected :create_paginators_and_retrieve_collections,
|
||||
:count_collection_for_pagination,
|
||||
:find_collection_for_pagination
|
||||
private
|
||||
|
||||
def paginator_and_collection_for(_collection_id, options) #:nodoc:
|
||||
klass = options[:class_name].constantize
|
||||
|
@ -214,8 +214,6 @@ module ActionController
|
|||
[paginator, collection]
|
||||
end
|
||||
|
||||
private :paginator_and_collection_for
|
||||
|
||||
# A class representing a paginator for an Active Record collection.
|
||||
class Paginator
|
||||
include Enumerable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue