Cache mailer view#22825
Conversation
|
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @arthurnn (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
I think this file shouldn't be here
If you think it's usefull -> https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
|
And I think the main difference between |
Yes. You can put in Action Dispatch like Abstract Controller already is. |
|
Hi, I'm wondering if I need to copy all the caching test from |
37be911 to
dd17e63
Compare
|
@arthurnn Hi, can you please give me some advice? thank you 😄 |
Yes, agree. It is better to have a fresh start in the test suite, but it is good to use the ActionController tests as inspiration. |
2204218 to
e5ae5a8
Compare
|
Here's what I have done so far:
And I am wondering what I should do next? This is my first time contributing |
…aticCollectionCacheTest
…_dispatch/caching/fragments
…ailer and ActionController to include it
…of including it Remove useless helper in ActionDispatch::Caching and fix indentation
…tor's environment templates
e5ae5a8 to
b166455
Compare
|
@rafaelfranca Hello ~ what can I do to merge this? |
|
@rafaelfranca Thanks for merging! |
|
@rafaelfranca BTW, when should/can I edit the documentations? |
|
You can open a PR upgrading the documentation, and we really should. |
|
@rafaelfranca ok, thanks! |
Hi, I'm adding cache feature to
ActionMailer's templates. I think there two ways to accomplish this goal.First is moving all the caching feature from
ActionControllertoAbstractControllersince bothActionMailerandActionControllerare inherited from it.The second one is porting caching features to
ActionMailer, which I think will break theDRYrule.However, I'm working on this with the second approach. Because I think after I reimplemented it in
ActionMailer, I can find some reusable parts in bothActionMailerandActionControllerand put them into somewhere likeActiveSupport?And I know this could be a huge work while I am not every familiar with Rails' codebase. So I am hoping someone can discuss this with me or give me some advice. Any suggestion will be very helpful, thanks!