Fix some more rubocop style issues

This commit is contained in:
Tom Hughes 2015-02-20 20:01:27 +00:00
parent 4f4180e4bd
commit 8e404f3a46
9 changed files with 43 additions and 50 deletions

View file

@ -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