-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Cache mailer view #22825
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. |
@@ -0,0 +1,8 @@ | |||
exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tadeusrox Thanks!
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. |
|
||
module ActionMailer | ||
module Caching | ||
extend ActiveSupport::Autoload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need this.
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
ActionController
toAbstractController
since bothActionMailer
andActionController
are inherited from it.The second one is porting caching features to
ActionMailer
, which I think will break theDRY
rule.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 bothActionMailer
andActionController
and 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!