attribute_normalizer
AASM
attribute_normalizer | AASM | |
---|---|---|
2 | 3 | |
476 | 4,958 | |
- | 0.4% | |
0.0 | 3.8 | |
5 months ago | 16 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
attribute_normalizer
-
auto_strip_attributes VS attribute_normalizer - a user suggested alternative
2 projects | 6 Jun 2023
As suggested on this post "Make Values Nil If Blank & Data Normalization In Rails" https://westonganger.com/posts/make-values-nil-if-blank-data-normalization-in-rails
-
nilify_blanks alternatives - auto_strip_attributes and attribute_normalizer
3 projects | 6 Jun 2023
AASM
-
Code review of an Order object implemented as a state machine
AASM gem is great too! Easy to use and actively maintained.
-
RoR Gems: Pin To Plane For Developing RoR Application
6. AASM
-
Validate state transition easily without any gem
You can use state machine gems, such as aasm to write validation. But the gem introduces new DSL to write state transition. It's too much just for validation.
What are some alternatives?
auto_strip_attributes - AutoStripAttributes gem for Rails helps to remove unnecessary whitespaces from ActiveRecord or ActiveModel attributes. It's good for removing accidental spaces from user inputs (e.g. when user copy/pastes some value to a form and the value has extra spaces at the end).
State Machine - Adds support for creating state machines for attributes on any Ruby class
PaperTrail - Track changes to your rails models
Workflow - Ruby finite-state-machine-inspired API for modeling workflow
ActiveDelegate - Delegate ActiveRecord model attributes and associations.
Statesman - A statesmanlike state machine library.
state_machines - Adds support for creating state machines for attributes on any Ruby class
StatefulEnum - A very simple state machine plugin built on top of ActiveRecord::Enum
transitions - State machine extracted from ActiveModel
FiniteMachine - A minimal finite state machine with a straightforward syntax.
simple_states - A super-slim statemachine-like support library