lib/active_collection/pagination.rb in active_collection-0.2.0 vs lib/active_collection/pagination.rb in active_collection-0.2.1
- old
+ new
@@ -180,10 +180,10 @@
protected
# Find options for pagination.
def pagination_options
- paginated?? { :offset => offset, :limit => per_page } : {}
+ { :offset => offset, :limit => per_page } if paginated?
end
end
end