lib/deimos/base_consumer.rb in deimos-ruby-1.3.0.pre.beta1 vs lib/deimos/base_consumer.rb in deimos-ruby-1.3.0.pre.beta2
- old
+ new
@@ -24,11 +24,10 @@
# @return [Object] the decoded key.
def decode_key(key)
return nil if key.nil?
config = self.class.config
- if config[:encode_key] && config[:key_field].nil? &&
- config[:key_schema].nil?
+ unless config[:key_configured]
raise 'No key config given - if you are not decoding keys, please use '\
'`key_config plain: true`'
end
if config[:key_field]