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

Add Email Previews #196

Merged
merged 1 commit into from Apr 5, 2016
Merged

Add Email Previews #196

merged 1 commit into from Apr 5, 2016

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Apr 5, 2016

Adds email previews to the dummy app. Uses a gem I wrote, which is also a Rails engine.

It works by rendering emails with mock data provided by plain Ruby classes. If the users happens to use the same gem or a similar one, they can easily include Thredded emails to their list of previews.

Modifies the mailer code to optionally accept ActiveRecord instances as well, so that the preview classes can supply mock instances.

thredded-emails-list
thredded-email-html
thredded-email-raw

Develop email templates with ease :)
@jayroh
Copy link
Member

jayroh commented Apr 5, 2016

Yes! This is fantastic!

@jayroh jayroh merged commit 20986cc into master Apr 5, 2016
@glebm glebm deleted the email-preview branch April 5, 2016 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants