Enable Style/RedundantSelf Rubocop cop
This cop checks for redundant uses of self. It supports autocorrection, so all the offenses where automatically solved. Closes #1373
This commit is contained in:
parent
444ceb8960
commit
4427f43bdf
11 changed files with 48 additions and 60 deletions
|
|
@ -12,6 +12,6 @@ class Question < ActiveRecord::Base
|
|||
private
|
||||
|
||||
def existing_answers
|
||||
errors.add(:base, 'Must have answers') if self.answers.blank?
|
||||
errors.add(:base, 'Must have answers') if answers.blank?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue