-
Notifications
You must be signed in to change notification settings - Fork 322
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
Fix unexpected Mail
#categories
, #categories=
behavior
#108
Fix unexpected Mail
#categories
, #categories=
behavior
#108
Conversation
I agree that use of Both the original interface (must have Setting aside whether breaking the consistency of using A related issue is #95 which references all of the array assignment methods, converting the use of |
Thank you for the pull request! Thanks for the detailed feedback @swifthand. I think #95 is the way to go for this particular issue. On the bigger issue of the |
Agree with @swifthand on the unnecessary restriction. @thinkingserious Yep, I think #95 (didn't notice that earlier) is the way to go. How should we proceed from here? |
If you still want to tackle the issue, I suggest you just update this PR. Unless it's easier to just create a new one. Either is fine with me. Thanks! |
I'm going to fork your pull request to make some further changes. Since this will be a breaking change there are few other things I'd like do while we have the hood up. Once I'm done, I'll make a pull request against your fork. Here is what I will be doing:
Thanks! |
@thinkingserious Great! I always hope the classes inside |
…to bugfix/mail-categories-unexpected-behavior
Could you please take a moment to sign our new CLA? Now you just need to click this link and fill out a short form. There is no downloading and signing anymore :) |
@thinkingserious Done! |
Hello @tkbky, |
Thanks again to @mootpointer and @swifthand for your help on this one! |
This change makes
Mail#categories=
to only acceptCategory
as its argument, otherwise, we would need to consider more cases if we allow it to accept different types of argument, and if not handle well, its behavior will be inconsistent.I'm not sure if we should accept an array of
Category
as well, or probably we should just accept an array instead.p/s: I've signed the CLA