Skip to content
Snippets Groups Projects
Commit 01c4c8b1 authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch '46233-rails5-fix-nomethoderror-undefined-method-for-3-string' into 'master'

Resolve "[Rails5] Fix `NoMethodError:  undefined method `-' for "3":String`"

Closes #46233

See merge request gitlab-org/gitlab-ce!18892
parents 8d74966f 0e9297b3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,7 @@ module Gitlab
def initialize(*collections, per_page: nil)
raise ArgumentError.new('Only 2 collections are supported') if collections.size != 2
 
@per_page = per_page || Kaminari.config.default_per_page
@per_page = (per_page || Kaminari.config.default_per_page).to_i
@first_collection, @second_collection = collections
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment