How to add a before_filter in UserMailer which checks if it is OK to mail a user?

前端 未结 4 831
余生分开走
余生分开走 2021-01-17 07:50

is there a global way I can write a before_filter for my user mailer, that checks to see if the user has emails disabled? Right now every mailer I have checks the user\'s se

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-17 08:11

    Maybe check out https://github.com/kelyar/mailer_callbacks. It looks like it will do what you want.

提交回复
热议问题