Sha256: 8e0a083d8eb7d09f5fa5511ac7cd529abbdbd88c7770cbbb3762f9a6d9eaebec

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

class SimulationJob < ActiveRecord::Base
  # 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

4 entries across 4 versions & 1 rubygems

Version Path
osc_machete_rails-1.2.2 test/dummy/app/models/simulation_job.rb
osc_machete_rails-2.0.0.pre1 test/dummy/app/models/simulation_job.rb
osc_machete_rails-1.2.1 test/dummy/app/models/simulation_job.rb
osc_machete_rails-1.2.0 test/dummy/app/models/simulation_job.rb