sanger/sequencescape

View on GitHub
app/models/failure.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
class Failure < ApplicationRecord
  belongs_to :failable, polymorphic: true
  after_create :notify_remote

  def notify_remote
    if notify_remote?
      # Send event to Studies here
    end
  end
end