lib/massive/process.rb in massive-0.3.0 vs lib/massive/process.rb in massive-0.4.0

- old
+ new

@@ -3,10 +3,10 @@ include Mongoid::Document include Mongoid::Timestamps field :cancelled_at, type: Time - embeds_many :steps, class_name: 'Massive::Step' + has_many :steps, class_name: 'Massive::Step', dependent: :destroy def self.find_step(process_id, step_id) find(process_id).steps.find(step_id) end