Add and apply DuplicateMethods rubocop rule
These methods were defined with `attr_reader` (or accessor in some cases) and then they were redefined.
This commit is contained in:
@@ -2,7 +2,7 @@ class CommentTree
|
||||
|
||||
ROOT_COMMENTS_PER_PAGE = 10
|
||||
|
||||
attr_reader :root_comments, :commentable, :page, :order
|
||||
attr_reader :commentable, :page, :order
|
||||
|
||||
def initialize(commentable, page, order = "confidence_score", valuations: false)
|
||||
@commentable = commentable
|
||||
|
||||
Reference in New Issue
Block a user