Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed minor derp

  • Loading branch information...
commit c3373f6a90c526839c73d9f8a0af7f4b344c327f 1 parent 641e7d1
@phene authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/will_paginate/active_record.rb
View
1  lib/will_paginate/active_record.rb
@@ -81,6 +81,7 @@ def size
# overloaded to be pagination-aware
def empty?
if !loaded? and offset_value
+ rel_count = count
if rel_count.respond_to?(:size) and !rel_count.is_a?(Integer)
rel_count.size <= offset_value
else
Please sign in to comment.
Something went wrong with that request. Please try again.