Sha256: 7dc850fbb65a50b411bea52f03676a461731053cafbbda5f029c45ba0fc2725a

Contents?: true

Size: 561 Bytes

Versions: 11

Compression:

Stored size: 561 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bmc-1.6.1 lib/bmc/config.rb
bmc-1.6.0 lib/bmc/config.rb
bmc-1.5.1 lib/bmc/config.rb
bmc-1.5.0 lib/bmc/config.rb
bmc-1.4.3 lib/bmc/config.rb
bmc-1.4.2 lib/bmc/config.rb
bmc-1.4.1 lib/bmc/config.rb
bmc-1.4.0 lib/bmc/config.rb
bmc-1.3.5 lib/bmc/config.rb
bmc-1.3.4 lib/bmc/config.rb
bmc-1.3.3 lib/bmc/config.rb