Fix Layout/SpaceInsidePercentLiteralDelimiters rubocop issue and remove from rubocop todo list
This commit is contained in:
@@ -647,12 +647,6 @@ Layout/SpaceInsideParens:
|
|||||||
- 'spec/features/proposals_spec.rb'
|
- 'spec/features/proposals_spec.rb'
|
||||||
- 'spec/models/abilities/moderator_spec.rb'
|
- 'spec/models/abilities/moderator_spec.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/activity.rb'
|
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 9
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: IgnoredMethods.
|
# Configuration parameters: IgnoredMethods.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ class Activity < ActiveRecord::Base
|
|||||||
belongs_to :actionable, -> { with_hidden }, polymorphic: true
|
belongs_to :actionable, -> { with_hidden }, polymorphic: true
|
||||||
belongs_to :user, -> { with_hidden }
|
belongs_to :user, -> { with_hidden }
|
||||||
|
|
||||||
VALID_ACTIONS = %w( hide block restore valuate )
|
VALID_ACTIONS = %w(hide block restore valuate)
|
||||||
|
|
||||||
validates :action, inclusion: {in: VALID_ACTIONS}
|
validates :action, inclusion: {in: VALID_ACTIONS}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user