Skip to content

Commit

Permalink
fix standardrb formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Waishnav committed Jul 25, 2024
1 parent 155f8d4 commit 0391c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/spam_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class SpamReport < ApplicationRecord
belongs_to :user

validates :forum_post_id, :user_id, :reason, presence: true
validates :details, presence: true, if: -> { reason == 'other' }
validates :details, presence: true, if: -> { reason == "other" }

enum reason: {
sexual_content: 0,
Expand Down
2 changes: 1 addition & 1 deletion lib/simple_discussion/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Engine < ::Rails::Engine

initializer "simple_discussion.assets.precompile" do |app|
app.config.assets.precompile += [
"simple_discussion/application.js",
"simple_discussion/application.js"
]
end

Expand Down

0 comments on commit 0391c97

Please sign in to comment.