Commit 064a1a3f09c29f87c320da7f183c586842b9fca0

Authored by Andrew Kane
1 parent f6b558b0

Allow Searchkick.callbacks (no nil) for cleaner test example [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick.rb
... ... @@ -146,7 +146,7 @@ module Searchkick
146 146 end
147 147 end
148 148  
149   - def self.callbacks(value)
  149 + def self.callbacks(value = nil)
150 150 if block_given?
151 151 previous_value = callbacks_value
152 152 begin
... ...