]> git.openstreetmap.org Git - rails.git/blobdiff - lib/classic_pagination/pagination.rb
Preserve URL fragments through external authentication
[rails.git] / lib / classic_pagination / pagination.rb
index b48844000135381a83960bddc68dc0d0cd905763..ee0c5b7dce015d99e43e634040be9eccb4eca064 100644 (file)
@@ -155,8 +155,7 @@ module ActionController
 
     def create_paginators_and_retrieve_collections #:nodoc:
       Pagination::OPTIONS[self.class].each do |collection_id, options|
-        next unless options[:actions].include? action_name if
-          options[:actions]
+        next if options[:actions] && !options[:actions].include?(action_name)
 
         paginator, collection =
           paginator_and_collection_for(collection_id, options)