Class: Effective::PostsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Effective::PostsMailer
- Defined in:
- app/mailers/effective/posts_mailer.rb
Instance Method Summary collapse
Instance Method Details
#post_submitted_to_admin(post_param) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/mailers/effective/posts_mailer.rb', line 7 def post_submitted_to_admin(post_param) @post = (post_param.kind_of?(Effective::Post) ? post_param : Effective::Post.find(post_param)) mail( to: EffectivePosts.mailer[:admin_email], from: EffectivePosts.mailer[:default_from], subject: subject_for_post_submitted_to_admin(@post) ) end |