This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix timeline pagination (
#8827
)
Ruby's ** operator does not play well with non-Hash objects, which the params slice is
Fix
#8821
pull/4/head
Eugen Rochko
5 years ago
committed by
GitHub
parent
e09301f414
commit
6c835085a3
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/concerns/paginable.rb
+ 1
- 1
app/models/concerns/paginable.rb
View File
@ -20,7 +20,7 @@ module Paginable
query
}
scope
:paginate_by_id
,
-
>
(
limit
,
**
options
)
{
scope
:paginate_by_id
,
-
>
(
limit
,
options
=
{
}
)
{
if
options
[
:min_id
]
.
present?
paginate_by_min_id
(
limit
,
options
[
:min_id
]
)
.
reverse
else
Write
Preview
Loading…
Cancel
Save