Fix some more rubocop style issues
This commit is contained in:
parent
4f4180e4bd
commit
8e404f3a46
9 changed files with 43 additions and 50 deletions
|
@ -359,13 +359,13 @@ module ActionController
|
|||
# Returns a new Page object representing the page just before this
|
||||
# page, or nil if this is the first page.
|
||||
def previous
|
||||
if first? then nil else @paginator[@number - 1] end
|
||||
first? ? nil : @paginator[@number - 1]
|
||||
end
|
||||
|
||||
# Returns a new Page object representing the page just after this
|
||||
# page, or nil if this is the last page.
|
||||
def next
|
||||
if last? then nil else @paginator[@number + 1] end
|
||||
last? ? nil : @paginator[@number + 1]
|
||||
end
|
||||
|
||||
# Returns a new Window object for this page with the specified
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue