Exception: Decisive::StreamIncompatibleBlockArgumentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/decisive/template_handler.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



45
46
47
# File 'lib/decisive/template_handler.rb', line 45

def message
  "#csv cannot take a block with a record argument while streaming, because the headers have to be known in advance. Either disable streaming by passing `stream: false` to #csv, or convert the template to yield the record to the block passed to each #column call."
end