Module: Orchestration::InstanceMethods

Defined in:
app/models/orchestration.rb

Instance Method Summary collapse

Instance Method Details

#post_queueObject


58
59
60
# File 'app/models/orchestration.rb', line 58

def post_queue
  @post_queue ||= Orchestration::Queue.new
end

#queueObject


54
55
56
# File 'app/models/orchestration.rb', line 54

def queue
  @queue ||= Orchestration::Queue.new
end

#record_conflictsObject


62
63
64
# File 'app/models/orchestration.rb', line 62

def record_conflicts
  @record_conflicts ||= []
end

#valid?(context = nil) ⇒ Boolean

we override this method in order to include checking the after validation callbacks status, as rails by default does not care about their return status.


48
49
50
51
52
# File 'app/models/orchestration.rb', line 48

def valid?(context = nil)
  setup_clone
  super
  orchestration_errors?
end