Fix new rubocop warnings
This commit is contained in:
parent
fbd6909b91
commit
6c2093b29d
21 changed files with 51 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue