Ruby on Rails
Friday, March 31, 2017
I've run into this same issue myself. It looks like work started on this feature but bogged down. See https://github.com/rails/rails/pull/16836
-- Would be great to get that pull request fixed up and merged in!
On Saturday, March 25, 2017 at 12:44:02 AM UTC-7, Илья Николаевич wrote:
On Saturday, March 25, 2017 at 12:44:02 AM UTC-7, Илья Николаевич wrote:
Hi there!
In my project I have a few engines. Each engine has its own set of Mailers and templates.
I want to have Previews for each specific engine, and keep them in engines.
I've found that ActionMailer Preview provides a way to change a path to preview classes, but looks like it's impossible to use an array of paths, or use something like `prepand_view_path / append_view_path ` like we can do in controllers.
https://github.com/rails/rails/blob/ 3faf7485623da55215d6d7f3dcb2ee d92c59c699/actionmailer/lib/ action_mailer/preview.rb#L92
Is there any way to have multiple paths for ActionMailer Preview?
Is it possible to create some kind of monkey patch to implement it?
Thanks!
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e0a7e234-676a-4aed-933b-9baf0653e9d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment