Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0f14429bee1a
Commit
7e6af854
authored
Aug 22, 2016
by
Patricio Cano
Browse files
Also check if Akismet is enabled, before showing the `Submit as spam` button.
parent
9741ac57964e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/concerns/spammable.rb
View file @
0f14429b
...
...
@@ -23,7 +23,7 @@ def attr_spammable(attr, options = {})
def
submittable_as_spam?
if
user_agent_detail
user_agent_detail
.
submittable?
user_agent_detail
.
submittable?
&&
current_application_settings
.
akismet_enabled
else
false
end
...
...
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