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