]> git.openstreetmap.org Git - rails.git/blobdiff - lib/classic_pagination/pagination.rb
Drop iconv which is deprecated and only needed for ruby 1.8 support
[rails.git] / lib / classic_pagination / pagination.rb
index 990a53d8b1d55be2b7561782854f510898d86e80..32995a5f65fa28c290833cf0a2b356e8e6a229c2 100644 (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