Fix some new rubocop warnings
This commit is contained in:
parent
c03ba5f6b8
commit
ea59d95f4a
23 changed files with 99 additions and 81 deletions
|
@ -158,7 +158,7 @@ module ActionController
|
|||
|
||||
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)
|
||||
next if options[:actions]&.exclude?(action_name)
|
||||
|
||||
paginator, collection =
|
||||
paginator_and_collection_for(collection_id, options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue