Sha256: 49e917aabc34434d465f9f27b72c4ebe8bca23dc36213bc4a0c2d9fe756ae1a8

Contents?: true

Size: 1.04 KB

Versions: 199

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

require 'avm/entries/auto_values/entry'
require 'avm/entries/entry'
require 'avm/instances/entry_keys'

module Avm
  module Instances
    class Base
      module AutoValues
        module Mailer
          ::Avm::Instances::EntryKeys.all.select { |c| c.to_s.start_with?('mailer.') }
            .reject { |c| c == ::Avm::Instances::EntryKeys::MAILER_ID }
            .each do |mailer_key|
            define_method ::Avm::Entries::AutoValues::Entry.auto_value_method_name(mailer_key) do
              mailer_auto_common(mailer_key)
            end
          end

          def auto_mailer_id
            inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID,
                                  ::Avm::Instances::EntryKeys::MAILER_ID) ||
              read_entry_optional(::Avm::Instances::EntryKeys::INSTALL_ID)
          end

          private

          def mailer_auto_common(mailer_key)
            inherited_entry_value(::Avm::Instances::EntryKeys::MAILER_ID, mailer_key)
          end
        end
      end
    end
  end
end

Version data entries

199 entries across 199 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.98.0 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.94.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.94.0 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.93.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.92.0 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.92.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.91.0 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.90.1 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.87.1 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.90.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.87.0 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.89.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.86.12 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.88.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.86.11 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.87.0 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.86.8 sub/avm/lib/avm/instances/base/auto_values/mailer.rb
avm-0.86.2 lib/avm/instances/base/auto_values/mailer.rb
eac_tools-0.86.7 sub/avm/lib/avm/instances/base/auto_values/mailer.rb