Closed grdw closed 7 years ago
Pseudo code:
... before_filter :clear_business_case_jobs, only: :update ... private def clear_business_case_jobs testing_ground_ids = TestingGround.where(market_model_id: @market_model.id).pluck(:id) BusinessCase.where(testing_ground_id: testing_ground_ids).each(&:clear_job!) end
Pseudo code: