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 rules with same priority being sorted non-deterministically (
#20623
)
closed-social-glitch-2
Eugen Rochko
2 years ago
committed by
GitHub
parent
6da9df774e
commit
2e2ba39abf
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/rule.rb
+ 1
- 1
app/models/rule.rb
View File
@ -18,5 +18,5 @@ class Rule < ApplicationRecord
validates
:text
,
presence
:
true
,
length
:
{
maximum
:
300
}
scope
:ordered
,
-
>
{
kept
.
order
(
priority
:
:asc
)
}
scope
:ordered
,
-
>
{
kept
.
order
(
priority
:
:asc
,
id
:
:asc
)
}
end
Write
Preview
Loading…
Cancel
Save