Skip to content

Commit

Permalink
Fixed minor derp
Browse files Browse the repository at this point in the history
  • Loading branch information
phene committed Sep 8, 2011
1 parent 641e7d1 commit c3373f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/will_paginate/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3373f6

Please sign in to comment.