We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470e204 commit 313b51dCopy full SHA for 313b51d
app/models/spam_report.rb
@@ -5,7 +5,7 @@ class SpamReport < ApplicationRecord
5
validates :forum_post_id, :user_id, :reason, presence: true
6
validates :details, presence: true, if: -> { reason == "others" }
7
8
- enum reason: {
+ enum :reason, {
9
sexual_content: 0,
10
violent_content: 1,
11
irrelevant_content: 2,
0 commit comments