Enumify lets you add an enum command to ActiveRecord models
There are four things that the enumify gems adds to your model
Validation - The enumify adds a validation to make sure that the field only receives accepted values
Super Cool Methods - adds ? and ! functions for each enum value (canceled? - is it canceled, canceled! - change the state to canceled)
Callback support - you can add a x_callback method which will be called each time the status changes
Scopes - you can easily query for values of the enum
Commercial Use
Modify
Distribute
Sub-License
Private Use
Hold Liable
Include Copyright
Include License
These details are provided for information only. No information here is legal advice and should not be used as such.
There are no reported vulnerabilities
30 Day SummaryDec 13 2024 — Jan 12 2025
|
12 Month SummaryJan 12 2024 — Jan 12 2025
|