Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2018-09-22 17:12:29 +01:00
parent fbd6909b91
commit 6c2093b29d
21 changed files with 51 additions and 0 deletions

View file

@ -316,6 +316,7 @@ module ActionController
# same page number).
def ==(other)
return false if other.nil?
@paginator == other.paginator &&
@number == other.number
end
@ -326,6 +327,7 @@ module ActionController
# if the pages do not belong to the same Paginator object.
def <=>(other)
raise ArgumentError unless @paginator == other.paginator
@number <=> other.number
end