You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are often times when it doesn't make any sense to add scopes to an enum attribute. i.e. You would never query the parent Model for certain values of that enum attribute.
I know you can disable pluralizing scopes but can you disable scopes altogether for certain enum attributes?
This would help remove methods from the parent Model that don't add value. Reduced noise. Improve clarity of intentions.
If not, let me know if this is something you would consider adding and I'll write up a PR for it.
The text was updated successfully, but these errors were encountered:
There are often times when it doesn't make any sense to add scopes to an
enum
attribute. i.e. You would never query the parent Model for certain values of thatenum
attribute.I know you can disable pluralizing scopes but can you disable scopes altogether for certain
enum
attributes?This would help remove methods from the parent Model that don't add value. Reduced noise. Improve clarity of intentions.
If not, let me know if this is something you would consider adding and I'll write up a PR for it.
The text was updated successfully, but these errors were encountered: