Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gab
social
gab-social
Commits
b7d6d5f1
Commit
b7d6d5f1
authored
Feb 19, 2021
by
Developer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed validation on spam_field for int in Account model
• Removed: - validation on spam_field for int in Account model
parent
187eb5ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
app/models/account.rb
app/models/account.rb
+0
-1
No files found.
app/models/account.rb
View file @
b7d6d5f1
...
...
@@ -88,7 +88,6 @@ class Account < ApplicationRecord
validates
:display_name
,
length:
{
maximum:
30
},
if:
->
{
local?
&&
will_save_change_to_display_name?
}
validates
:note
,
note_length:
{
maximum:
500
},
if:
->
{
local?
&&
will_save_change_to_note?
}
validates
:fields
,
length:
{
maximum:
6
},
if:
->
{
local?
&&
will_save_change_to_fields?
}
validates
:spam_flag
,
inclusion:
{
in:
SPAM_FLAG_CLASS_MAP
.
values
}
scope
:remote
,
->
{
where
.
not
(
domain:
nil
)
}
scope
:local
,
->
{
where
(
domain:
nil
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment