class << BMC attr_writer :parent_controller def parent_controller @parent_controller ||= [ "ApplicationController", "ActionController::Base", ].filter_map(&:safe_constantize).first end attr_writer :parent_job def parent_job @parent_job ||= [ "ApplicationJob", "ActiveJob::Base", ].filter_map(&:safe_constantize).first end attr_writer :parent_mailer def parent_mailer @parent_mailer ||= [ "ApplicationMailer", "ActionMailer::Base", ].filter_map(&:safe_constantize).first end end