lib/rocket_job/batch/tabular/output.rb in rocketjob-5.4.1 vs lib/rocket_job/batch/tabular/output.rb in rocketjob-6.0.0.rc1
- old
+ new
@@ -8,12 +8,14 @@
# instead of this plugin.
module Output
extend ActiveSupport::Concern
included do
+ warn "#{name} is using RocketJob::Batch::Tabular::Output which is deprecated"
+
field :tabular_output_header, type: Array, class_attribute: true, user_editable: true, copy_on_restart: true
- field :tabular_output_format, type: Symbol, default: :csv, class_attribute: true, user_editable: true, copy_on_restart: true
+ field :tabular_output_format, type: Mongoid::StringifiedSymbol, default: :csv, class_attribute: true, user_editable: true, copy_on_restart: true
field :tabular_output_options, type: Hash, class_attribute: true
validates_inclusion_of :tabular_output_format, in: IOStreams::Tabular.registered_formats
after_perform :tabular_output_render
@@ -53,10 +55,10 @@
)
end
# Render the output from the perform.
def tabular_output_render
- return unless collect_output?
+ return unless output_categories.present?
@rocket_job_output = tabular_output.render(@rocket_job_output)
end
end
end