Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature for mailer #106

Open
ujifgc opened this issue Jun 5, 2016 · 2 comments
Open

New feature for mailer #106

ujifgc opened this issue Jun 5, 2016 · 2 comments

Comments

@ujifgc
Copy link
Member

ujifgc commented Jun 5, 2016

Implemented new way to call render in mailers. It allows to omit mailer name or mailer name and message name.

Example:

  mailer :sample do
    message :message2
      render 'congrats' #=> renders from 'sample/congrats'
    end
    message :message1
      render #=> renders from 'sample/message1'
    end
  end

padrino/padrino-framework@cc6fe63

ref: padrino/padrino-framework#1906

@nesquena
Copy link
Member

nesquena commented Jun 5, 2016

Nice! Thanks for noting that this needs to be updated in the docs too.

@wikimatze
Copy link
Member

I'll take care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants