Sha256: 8c5770e9218a4cc087d2460debf28ec55570f8167ecc83c415f2def1ab32b9de

Contents?: true

Size: 403 Bytes

Versions: 53

Compression:

Stored size: 403 Bytes

Contents

class << Agilibox
  attr_writer :parent_controller

  def parent_controller
    @parent_controller ||= [
      "ApplicationController",
      "ActionController::Base",
    ].map(&:safe_constantize).compact.first
  end

  attr_writer :parent_mailer

  def parent_mailer
    @parent_mailer ||= [
      "ApplicationMailer",
      "ActionMailer::Base",
    ].map(&:safe_constantize).compact.first
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
agilibox-1.11.0 lib/agilibox/config.rb
agilibox-1.10.5 lib/agilibox/config.rb
agilibox-1.10.2 lib/agilibox/config.rb
agilibox-1.10.1 lib/agilibox/config.rb
agilibox-1.10.0 lib/agilibox/config.rb
agilibox-1.9.20 lib/agilibox/config.rb
agilibox-1.9.19 lib/agilibox/config.rb
agilibox-1.9.18 lib/agilibox/config.rb
agilibox-1.9.17 lib/agilibox/config.rb
agilibox-1.9.16 lib/agilibox/config.rb
agilibox-1.9.15 lib/agilibox/config.rb
agilibox-1.9.14 lib/agilibox/config.rb
agilibox-1.9.13 lib/agilibox/config.rb
agilibox-1.9.12 lib/agilibox/config.rb
agilibox-1.9.11 lib/agilibox/config.rb
agilibox-1.9.10 lib/agilibox/config.rb
agilibox-1.9.9 lib/agilibox/config.rb
agilibox-1.9.8 lib/agilibox/config.rb
agilibox-1.9.7 lib/agilibox/config.rb
agilibox-1.9.6 lib/agilibox/config.rb