Login
Roast topics
Find topics
Find it!
From:
Boring Rails: Skip the bullshit and ship fast |
(Uncensored)
subscribe
Run different ActiveRecord validations based on context
https://boringrails.com/tips/activerecord-validation-context
links
backlinks
Tagged with:
ruby
rails
Roast topics
Find topics
Roast it!
Sometimes want to skip certain validations on your database models. Maybe you have a multi-step wizard or want admins to have more freedom in changing data.