Module: ActiveBatch::WithActiveJobArguments
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveJob::Arguments
- Defined in:
- app/models/concerns/active_batch/with_active_job_arguments.rb
Instance Method Summary collapse
Instance Method Details
#arguments ⇒ Object
10 11 12 |
# File 'app/models/concerns/active_batch/with_active_job_arguments.rb', line 10 def arguments deserialize(JSON.parse(read_attribute(:arguments))) end |
#arguments=(arguments) ⇒ Object
6 7 8 |
# File 'app/models/concerns/active_batch/with_active_job_arguments.rb', line 6 def arguments=(arguments) write_attribute(:arguments, serialize(arguments).to_json) end |