Commit 0da9d503779f91df020d70b0652f42717668ee45

Authored by Andrew
1 parent c4f9339a

Shorten line length [skip ci]

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
lib/searchkick/model.rb
... ... @@ -67,7 +67,9 @@ module Searchkick
67 67 end
68 68  
69 69 callbacks = options.key?(:callbacks) ? options[:callbacks] : true
70   - raise ArgumentError, "Unknown value for callbacks" unless [true, false, :async, :queue].include?(callbacks)
  70 + unless [true, false, :async, :queue].include?(callbacks)
  71 + raise ArgumentError, "Unknown value for callbacks"
  72 + end
71 73  
72 74 if callbacks
73 75 if respond_to?(:after_commit)
... ...