Permalink
Browse files

example initializer

  • Loading branch information...
arkes committed Nov 9, 2012
1 parent 5b756aa commit 8d7141b292734982489ac0cf623d6ef8ee5c56b3
Showing with 32 additions and 0 deletions.
  1. +32 −0 misc/initializers/lazy_mail.rb
@@ -0,0 +1,32 @@
+# You have to set the default :from
+#
+LazyMail.default_no_reply = 'no-reply@set-the-no-reply.com'
+
+# To set the option :to by default
+# Put the name of a model
+#
+LazyMail.user_model = User
+
+# By default it will call the method email of your model
+#
+# LazyMail.email_field = :email
+
+# I18n subject is a scope: [:mailer, :mailer_name, :action_name]
+# If you want the rails default set it to nil
+# key works: :mailer_name, :action_name
+#
+# LazyMail.i18n_scope = [:mailer, :class_name, :action_name]
+
+
+# By default the mail view are in: 'app/views/notifications/mailer_name/current_locale/'
+# If you prefer the rails default set it to nil
+# default: 'notifications'
+#
+# LazyMail.mailer_templates_path = 'notifications'
+
+# For the development phase you can set a default :to
+# String: If you want the same email
+# :git : If want to use 'git config user.email'
+# default: :git
+#
+# LazyMail.development_mail = :git

0 comments on commit 8d7141b

Please sign in to comment.