Sha256: a682e6db3d88ee2003f2d79b6882a3c9b785431bc187499dc185af94cd1d5bdc

Contents?: true

Size: 402 Bytes

Versions: 5

Compression:

Stored size: 402 Bytes

Contents

class SimulationJob < ApplicationRecord
  # Here we test the deprecated include method instead of the new
  # OscMacheteRails::Statusable
  # We will want both to work...
  include OSC::Machete::SimpleJob::Statusable

  belongs_to :simulation

  before_destroy { |j| j.job.delete(rmdir: true) if j.job }

  # Determine if the results are valid
  # def results_valid?
  #   # CODE GOES HERE
  # end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
osc_machete_rails-2.1.2 test/dummy/app/models/simulation_job.rb
osc_machete_rails-2.1.0 test/dummy/app/models/simulation_job.rb
osc_machete_rails-2.0.0 test/dummy/app/models/simulation_job.rb
osc_machete_rails-1.3.1 test/dummy/app/models/simulation_job.rb
osc_machete_rails-1.3.0 test/dummy/app/models/simulation_job.rb