Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2020-05-12 19:18:45 +01:00
parent 598e1c84fe
commit f3219ada14
2 changed files with 2 additions and 0 deletions

View file

@ -309,6 +309,7 @@ module ActionController
@number = 1 unless @paginator.has_page_number? @number
end
attr_reader :paginator, :number
alias to_i number
# Compares two Page objects and returns true when they represent the