New Discussion

Notifications

You’re not receiving notifications from this thread.

How do I extend enum method?

0
Rails

Is there a simple way to either extend the enum methods OR to override the current bang method? I have a lot of enum statuses that I update with bang. However, the rails enum bang method is written to update all rather than update_attribute. I don't want my use of this method to trigger a ton of validations on the class just to change one status. Has anyone else run into this?

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.