Commit 643becc6d97a548c699b74a5b100e9b6844db7b7

Authored by Andrew Kane
1 parent 16a82688

Fixed scroll [skip ci]

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/searchkick/relation.rb
@@ -277,6 +277,8 @@ module Searchkick @@ -277,6 +277,8 @@ module Searchkick
277 options[:scroll] = value if value 277 options[:scroll] = value if value
278 if block 278 if block
279 execute.scroll(&block) 279 execute.scroll(&block)
  280 + elsif !value
  281 + execute.scroll
280 else 282 else
281 self 283 self
282 end 284 end