lib/mayaml-mutt/configs_generator.rb in mayaml-mutt-1.0.0 vs lib/mayaml-mutt/configs_generator.rb in mayaml-mutt-1.1.0
- old
+ new
@@ -38,9 +38,10 @@
def generates_creds(accounts)
accounts.each_with_object({}) do |mail_account, result|
key = mail_account.name.to_sym
result[key] = @creds_templater.render(mail_account)
+ result[:default] = mail_account.name if mail_account.default || !result.key?(:default)
result
end
end
end
end